source: trunk/lib/docbook/module-fop/conf/config.xml @ 3346

Last change on this file since 3346 was 3346, checked in by Nicklas Nordborg, 16 years ago

Updated docbook PDF generation to use FOP 0.93 instead of 0.20

File size: 10.1 KB
Line 
1<?xml version="1.0"?>
2<!--
3  Licensed to the Apache Software Foundation (ASF) under one or more
4  contributor license agreements.  See the NOTICE file distributed with
5  this work for additional information regarding copyright ownership.
6  The ASF licenses this file to You under the Apache License, Version 2.0
7  (the "License"); you may not use this file except in compliance with
8  the License.  You may obtain a copy of the License at
9
10       http://www.apache.org/licenses/LICENSE-2.0
11
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  See the License for the specific language governing permissions and
16  limitations under the License.
17-->
18<!-- $Id: fop.xconf 447325 2006-09-18 10:55:33 +0200 (Mon, 18 Sep 2006) jeremias $ -->
19
20<!--
21
22This is an example configuration file for FOP.
23This file contains the same settings as the default values
24and will have no effect if used unchanged.
25
26Relative config url's will be resolved relative to
27the location of this file.
28
29-->
30
31<!-- NOTE: This is the version of the configuration -->
32<fop version="1.0">
33
34
35  <!-- Base URL for resolving relative URLs -->
36  <base>.</base>
37  <font-base>@ant.docbook.styler.fileuri@/module-fop/fonts/</font-base>
38 
39  <!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -->
40  <source-resolution>96</source-resolution>
41  <!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->
42  <target-resolution>96</target-resolution>
43 
44  <!-- Default page-height and page-width, in case
45       value is specified as auto -->
46  <default-page-settings height="11in" width="8.26in"/>
47 
48  <!-- Information for specific renderers -->
49  <!-- Uses renderer mime type for renderers -->
50  <renderers>
51    <renderer mime="application/pdf">
52      <filterList>
53        <!-- provides compression using zlib flate (default is on) -->
54        <value>flate</value>
55 
56        <!-- encodes binary data into printable ascii characters (default off)
57             This provides about a 4:5 expansion of data size -->
58        <!-- <value>ascii-85</value> -->
59 
60        <!-- encodes binary data with hex representation (default off)
61             This filter is not recommended as it doubles the data size -->
62        <!-- <value>ascii-hex</value> -->
63      </filterList>
64
65      <fonts>
66        <!-- embedded fonts -->
67        <!--
68        This information must exactly match the font specified
69        in the fo file. Otherwise it will use a default font.
70
71        For example,true
72        <fo:inline font-family="Arial" font-weight="bold" font-style="normal">
73            Arial-normal-normal font
74        </fo:inline>
75        for the font triplet specified by:
76        <font-triplet name="Arial" style="normal" weight="bold"/>
77
78        If you do not want to embed the font in the pdf document
79        then do not include the "embed-url" attribute.
80        The font will be needed where the document is viewed
81        for it to be displayed properly.
82
83        possible styles: normal | italic | oblique | backslant
84        possible weights: normal | bold | 100 | 200 | 300 | 400
85                          | 500 | 600 | 700 | 800 | 900
86        (normal = 400, bold = 700)
87        -->
88
89        <!--
90        <font metrics-url="arial.xml" kerning="yes" embed-url="arial.ttf">
91          <font-triplet name="Arial" style="normal" weight="normal"/>
92          <font-triplet name="ArialMT" style="normal" weight="normal"/>
93        </font>
94        <font metrics-url="arialb.xml" kerning="yes" embed-url="arialb.ttf">
95          <font-triplet name="Arial" style="normal" weight="bold"/>
96          <font-triplet name="ArialMT" style="normal" weight="bold"/>
97        </font>
98        -->
99
100  <font metrics-url="qbkb.xml" kerning="yes" embed-url="qbkb.ttf">
101    <font-triplet name="QuasiBookmanTTF" style="normal" weight="bold"/>
102  </font>
103  <font metrics-url="qbkbi.xml" kerning="yes" embed-url="qbkbi.ttf">
104    <font-triplet name="QuasiBookmanTTF" style="oblique" weight="bold"/>
105    <font-triplet name="QuasiBookmanTTF" style="italic" weight="bold"/>
106  </font>
107  <font metrics-url="qbkr.xml" kerning="yes" embed-url="qbkr.ttf">
108    <font-triplet name="QuasiBookmanTTF" style="normal" weight="normal"/>
109  </font>
110  <font metrics-url="qbkri.xml" kerning="yes" embed-url="qbkri.ttf">
111    <font-triplet name="QuasiBookmanTTF" style="oblique" weight="normal"/>
112    <font-triplet name="QuasiBookmanTTF" style="italic" weight="normal"/>
113  </font>
114
115  <font metrics-url="qcrb.xml" kerning="yes" embed-url="qcrb.ttf">
116    <font-triplet name="QuasiCourierTTF" style="normal" weight="bold"/>
117  </font>
118  <font metrics-url="qcrbi.xml" kerning="yes" embed-url="qcrbi.ttf">
119    <font-triplet name="QuasiCourierTTF" style="oblique" weight="bold"/>
120    <font-triplet name="QuasiCourierTTF" style="italic" weight="bold"/>
121  </font>
122
123  <font metrics-url="qcrr.xml" kerning="yes" embed-url="qcrr.ttf">
124    <font-triplet name="QuasiCourierTTF" style="normal" weight="normal"/>
125  </font>
126
127  <font metrics-url="qcrri.xml" kerning="yes" embed-url="qcrri.ttf">
128    <font-triplet name="QuasiCourierTTF" style="oblique" weight="normal"/>
129    <font-triplet name="QuasiCourierTTF" style="italic" weight="normal"/>
130  </font>
131
132  <font metrics-url="qhvb.xml" kerning="yes" embed-url="qhvb.ttf">
133    <font-triplet name="QuasiSwissTTF" style="normal" weight="bold"/>
134  </font>
135
136  <font metrics-url="qhvbi.xml" kerning="yes" embed-url="qhvbi.ttf">
137    <font-triplet name="QuasiSwissTTF" style="oblique" weight="bold"/>
138    <font-triplet name="QuasiSwissTTF" style="italic" weight="bold"/>
139  </font>
140
141  <font metrics-url="qhvcb.xml" kerning="yes" embed-url="qhvcb.ttf">
142    <font-triplet name="QuasiSwissCondensedTTF" style="normal" weight="bold"/>
143  </font>
144
145  <font metrics-url="qhvcbi.xml" kerning="yes" embed-url="qhvcbi.ttf">
146    <font-triplet name="QuasiSwissCondensedTTF" style="oblique" weight="bold"/>
147    <font-triplet name="QuasiSwissCondensedTTF" style="italic" weight="bold"/>
148  </font>
149
150  <font metrics-url="qhvcr.xml" kerning="yes" embed-url="qhvcr.ttf">
151    <font-triplet name="QuasiSwissCondensedTTF" style="normal" weight="normal"/>
152  </font>
153
154  <font metrics-url="qhvcri.xml" kerning="yes" embed-url="qhvcri.ttf">
155    <font-triplet name="QuasiSwissCondensedTTF" style="oblique" weight="normal"/>
156    <font-triplet name="QuasiSwissCondensedTTF" style="italic" weight="normal"/>
157  </font>
158
159  <font metrics-url="qhvr.xml" kerning="yes" embed-url="qhvr.ttf">
160    <font-triplet name="QuasiSwissTTF" style="normal" weight="normal"/>
161  </font>
162
163  <font metrics-url="qhvri.xml" kerning="yes" embed-url="qhvri.ttf">
164    <font-triplet name="QuasiSwissTTF" style="oblique" weight="normal"/>
165    <font-triplet name="QuasiSwissTTF" style="italic" weight="normal"/>
166  </font>
167
168  <font metrics-url="qplb.xml" kerning="yes" embed-url="qplb.ttf">
169    <font-triplet name="QuasiPalatinoTTF" style="normal" weight="bold"/>
170  </font>
171
172  <font metrics-url="qplbi.xml" kerning="yes" embed-url="qplbi.ttf">
173    <font-triplet name="QuasiPalatinoTTF" style="oblique" weight="bold"/>
174    <font-triplet name="QuasiPalatinoTTF" style="italic" weight="bold"/>
175  </font>
176
177  <font metrics-url="qplr.xml" kerning="yes" embed-url="qplr.ttf">
178    <font-triplet name="QuasiPalatinoTTF" style="normal" weight="normal"/>
179  </font>
180
181  <font metrics-url="qplri.xml" kerning="yes" embed-url="qplri.ttf">
182    <font-triplet name="QuasiPalatinoTTF" style="oblique" weight="normal"/>
183    <font-triplet name="QuasiPalatinoTTF" style="italic" weight="normal"/>
184  </font>
185
186  <font metrics-url="qtmb.xml" kerning="yes" embed-url="qtmb.ttf">
187    <font-triplet name="QuasiTimesTTF" style="normal" weight="bold"/>
188  </font>
189
190  <font metrics-url="qtmbi.xml" kerning="yes" embed-url="qtmbi.ttf">
191    <font-triplet name="QuasiTimesTTF" style="oblique" weight="bold"/>
192    <font-triplet name="QuasiTimesTTF" style="italic" weight="bold"/>
193  </font>
194
195  <font metrics-url="qtmr.xml" kerning="yes" embed-url="qtmr.ttf">
196    <font-triplet name="QuasiTimesTTF" style="normal" weight="normal"/>
197  </font>
198
199  <font metrics-url="qtmri.xml" kerning="yes" embed-url="qtmri.ttf">
200    <font-triplet name="QuasiTimesTTF" style="oblique" weight="normal"/>
201    <font-triplet name="QuasiTimesTTF" style="italic" weight="normal"/>
202  </font>
203
204  <font metrics-url="qzcmi.xml" kerning="yes" embed-url="qzcmi.ttf">
205    <font-triplet name="QuasiChanceryTTF" style="oblique" weight="bold"/>
206    <font-triplet name="QuasiChanceryTTF" style="oblique" weight="normal"/>
207    <font-triplet name="QuasiChanceryTTF" style="italic" weight="bold"/>
208    <font-triplet name="QuasiChanceryTTF" style="italic" weight="normal"/>
209  </font>
210
211
212      </fonts>
213
214      <!-- This option lets you specify additional options on an XML handler -->
215      <!--xml-handler namespace="http://www.w3.org/2000/svg">
216        <stroke-text>false</stroke-text>
217      </xml-handler-->
218
219    </renderer>
220
221    <renderer mime="application/postscript">
222      <!-- This option forces the PS renderer to rotate landscape pages -->
223      <!--auto-rotate-landscape>true</auto-rotate-landscape-->
224     
225      <!-- This option lets you specify additional options on an XML handler -->
226      <!--xml-handler namespace="http://www.w3.org/2000/svg">
227        <stroke-text>false</stroke-text>
228      </xml-handler-->
229    </renderer>
230
231    <renderer mime="application/vnd.hp-PCL">
232    </renderer>
233
234    <!-- MIF does not have a renderer
235    <renderer mime="application/vnd.mif">
236    </renderer>
237    -->
238
239    <renderer mime="image/svg+xml">
240      <format type="paginated"/>
241      <link value="true"/>
242      <strokeText value="false"/>
243    </renderer>
244
245    <renderer mime="application/awt">
246    </renderer>
247
248    <renderer mime="image/png">
249      <!--transparent-page-background>true</transparent-page-background-->
250    </renderer>
251
252    <renderer mime="image/tiff">
253      <!--transparent-page-background>true</transparent-page-background-->
254      <!--compression>CCITT T.6</compression-->
255    </renderer>
256
257    <renderer mime="text/xml">
258    </renderer>
259
260    <!-- RTF does not have a renderer
261    <renderer mime="text/rtf">
262    </renderer>
263    -->
264
265    <renderer mime="text/plain">
266      <pageSize columns="80"/>
267    </renderer>
268
269  </renderers>
270
271</fop>
272
Note: See TracBrowser for help on using the repository browser.