source: pst/ps/fop.xml@ bd81e201

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since bd81e201 was 4634c7a, checked in by Fernando de Oliveira <fernando@…>, 9 years ago

Replaced http by https: sourceforge-repo, cups-filters, ijs, fop. Rephrased
'Installed Libraries' in sawfish.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@14841 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY fop-download-http "https://archive.apache.org/dist/xmlgraphics/fop/source/fop-&fop-version;-src.tar.gz">
8 <!ENTITY fop-download-ftp " ">
9 <!ENTITY fop-md5sum "7b63af514b28c06fe710a794cbf4d68e">
10 <!ENTITY fop-size "23 MB">
11 <!ENTITY fop-buildsize "206 MB">
12 <!ENTITY fop-time "0.5 SBU">
13
14 <!ENTITY jai-version "1_1_3">
15 <!ENTITY jai-download "http://download.java.net/media/jai/builds/release/&jai-version;/jai-&jai-version;-lib-linux-i586.tar.gz">
16 <!ENTITY jai-md5sum "a2cbc155ef3899bcde9c74a8035764b3">
17 <!ENTITY jai-size "3.4 MB">
18
19 <!ENTITY jai64-download "http://download.java.net/media/jai/builds/release/&jai-version;/jai-&jai-version;-lib-linux-amd64.tar.gz">
20 <!ENTITY jai64-md5sum "4a906db35612f668aeef2c0606d7075b">
21 <!ENTITY jai64-size "3.4 MB">
22<!--
23 <!ENTITY offo-download "&sourceforge-repo;/offo/offo-hyphenation_v2.0.zip">
24 <!ENTITY offo-md5sum "a78171d47c9af223c51bbd42df36f26d">
25 <!ENTITY offo-size "858 KB">
26-->
27]>
28
29<sect1 id="fop" xreflabel="fop-&fop-version;">
30 <?dbhtml filename="fop.html"?>
31
32 <sect1info>
33 <othername>$LastChangedBy$</othername>
34 <date>$Date$</date>
35 </sect1info>
36
37 <title>fop-&fop-version;</title>
38
39 <indexterm zone="fop">
40 <primary sortas="a-fop">fop</primary>
41 </indexterm>
42
43 <sect2 role="package">
44 <title>Introduction to fop</title>
45
46 <para>The <application>FOP</application> (Formatting Objects Processor)
47 package contains a print formatter driven by XSL formatting objects
48 (XSL-FO). It is a <application>Java</application> application that reads
49 a formatting object tree and renders the resulting pages to a specified
50 output. Output formats currently supported include PDF, PCL, PostScript,
51 SVG, XML (area tree representation), print, AWT, MIF and ASCII text. The
52 primary output target is PDF.</para>
53
54 &lfs76_checked;
55
56 <bridgehead renderas="sect3">Package Information</bridgehead>
57 <itemizedlist spacing="compact">
58 <listitem>
59 <para>Download (HTTP): <ulink url="&fop-download-http;"/></para>
60 </listitem>
61 <listitem>
62 <para>Download (FTP): <ulink url="&fop-download-ftp;"/></para>
63 </listitem>
64 <listitem>
65 <para>Download MD5 sum: &fop-md5sum;</para>
66 </listitem>
67 <listitem>
68 <para>Download size: &fop-size;</para>
69 </listitem>
70 <listitem>
71 <para>Estimated disk space required: &fop-buildsize;</para>
72 </listitem>
73 <listitem>
74 <para>Estimated build time: &fop-time;</para>
75 </listitem>
76 </itemizedlist>
77
78 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
79 <itemizedlist spacing="compact">
80 <title>Required packages</title>
81
82<!--
83 <listitem>
84 <para>Objects for Formatting Objects (OFFO) hyphenation patterns:
85 <simplelist>
86 <member><ulink url="&offo-download;"/></member>
87 <member>&offo-md5sum;</member>
88 <member>&offo-size;</member>
89 </simplelist>
90 </para>
91 </listitem>
92-->
93 <listitem>
94 <para>Java Advanced Imaging (JAI) API components (architecture dependent):
95 <simplelist>
96 <member><ulink url="&jai-download;"/></member>
97 <member>&jai-md5sum;</member>
98 <member>&jai-size;</member>
99 </simplelist>
100 <literallayout>or</literallayout> <!-- Force some space -->
101 <simplelist>
102 <member><ulink url="&jai64-download;"/></member>
103 <member>&jai64-md5sum;</member>
104 <member>&jai64-size;</member>
105 </simplelist>
106 </para>
107 </listitem>
108 </itemizedlist>
109
110 <bridgehead renderas="sect3">fop Dependencies</bridgehead>
111
112 <bridgehead renderas="sect4">Required</bridgehead>
113 <para role="required">
114 <xref linkend="apache-ant"/>
115 </para>
116
117 <bridgehead renderas="sect4">Optional</bridgehead>
118 <para role="optional">
119 <xref linkend="junit"/> (to run tests),
120 <xref linkend="x-window-system"/> (to run tests),
121 <ulink url="http://java.sun.com/products/jimi/">JIMI SDK</ulink>,
122 <ulink url="http://xmlunit.sourceforge.net/">XMLUnit</ulink>,
123 <ulink url="https://java.net/projects/jai-imageio">JAI Image I/O Tools</ulink>,
124 <ulink url="http://jeuclid.sourceforge.net/">JEuclid</ulink>,
125 <ulink url="http://pmd.sourceforge.net">PMD</ulink>
126 (requires <ulink url="http://jaxen.codehaus.org/">Jaxen</ulink>), and
127 <ulink url="http://forrest.apache.org/">Forrest</ulink> (Forrest used only
128 to build the documentation)
129 </para>
130
131 <para condition="html" role="usernotes">User Notes:
132 <ulink url="&blfs-wiki;/fop"/></para>
133
134 </sect2>
135
136 <sect2 role="installation">
137 <title>Installation of fop</title>
138
139 <para>Ensure <envar>$JAVA_HOME</envar> is set correctly before beginning
140 the build. To build the <application>JIMI SDK</application> and/or
141 <application>XMLUnit</application> extension classes, ensure the
142 corresponding <filename class='extension'>.jar</filename> files can be
143 found via the <envar>CLASSPATH</envar> environment variable.</para>
144<!--
145 <sect3>
146 <title>Installing OFFO Hyphenation Patterns</title>
147
148 <para>First, unpack the <application>fop</application> source tarball and
149 the hyphenation zipfile from the same directory, then change directories
150 into the root of the <application>fop</application> source tree. Copy the
151 XML hyphenation patterns into the <application>fop</application> source
152 tree by running the following commands:</para>
153
154<screen><userinput>cp ../offo-hyphenation/hyph/* hyph &amp;&amp;
155rm -rf ../offo-hyphenation</userinput></screen>
156
157 </sect3>
158-->
159 <sect3>
160 <title>Installing Java Advanced Imaging (JAI) API components</title>
161
162 <para>Next install the JAI API components. As the <systemitem
163 class="username">root</systemitem> user:</para>
164
165<screen><userinput>case `uname -m` in
166 i?86)
167 tar -xf ../jai-&jai-version;-lib-linux-i586.tar.gz
168 cp -v jai-&jai-version;/lib/{jai*,mlibwrapper_jai.jar} $JAVA_HOME/jre/lib/ext/
169 cp -v jai-&jai-version;/lib/libmlib_jai.so $JAVA_HOME/jre/lib/i386/
170 ;;
171
172 x86_64)
173 tar -xf ../jai-&jai-version;-lib-linux-amd64.tar.gz
174 cp -v jai-&jai-version;/lib/{jai*,mlibwrapper_jai.jar} $JAVA_HOME/jre/lib/ext/
175 cp -v jai-&jai-version;/lib/libmlib_jai.so $JAVA_HOME/jre/lib/amd64/
176 ;;
177esac</userinput></screen>
178 </sect3>
179
180 <sect3>
181 <title>Installing fop Components</title>
182
183 <para>Compile <application>fop</application> by running the
184 following commands:</para>
185
186<screen><userinput>ant compile &amp;&amp;
187ant jar-main &amp;&amp;
188ant javadocs &amp;&amp;
189mv build/javadocs .</userinput></screen>
190
191 <para>If <application>Forrest</application> is installed,
192 build the full set of documentation:</para>
193
194<screen><userinput>ant docs</userinput></screen>
195
196 <para>To test the application, run <command>ant junit-all</command>. The
197 hyphenation tests will fail. To see a list of other test targets, use
198 <command>ant -p</command>. You must run the tests from an X-window using
199 a GL-aware <application>Xorg</application> server or some of the
200 <application>JUnit</application> tests will hang.</para>
201
202 <para>Now, as the <systemitem class="username">root</systemitem>
203 user:</para>
204
205<screen role="root"><userinput>install -v -d -m755 /opt/fop-&fop-version; &amp;&amp;
206cp -v KEYS LICENSE NOTICE README /opt/fop-&fop-version; &amp;&amp;
207cp -va build conf examples fop* javadocs lib status.xml /opt/fop-&fop-version; &amp;&amp;
208
209ln -v -sf fop-&fop-version; /opt/fop</userinput></screen>
210
211 </sect3>
212
213 </sect2>
214
215 <sect2 role="commands">
216 <title>Command Explanations</title>
217
218 <para><command>ant <option>target</option></command>: This reads the file
219 <filename>build.xml</filename> and builds the target files.</para>
220
221 <para><command>ln -v -sf fop-&fop-version; /opt/fop</command>: This is
222 optional and creates a convenience symlink so that <envar>$FOP_HOME</envar>
223 doesn't have to be changed each time there's a package version change.</para>
224
225 </sect2>
226
227 <sect2 role="configuration">
228 <title>Configuring fop</title>
229
230 <sect3 id="fop-config">
231 <title>Config Files</title>
232
233 <para><filename>~/.foprc</filename></para>
234
235 <indexterm zone="fop fop-config">
236 <primary sortas="e-AA.foprc">~/.foprc</primary>
237 </indexterm>
238
239 </sect3>
240
241 <sect3>
242 <title>Configuration Information</title>
243
244 <para>Using <application>fop</application> to process some large FO's
245 (including the FO derived from the BLFS XML sources), can lead to memory
246 errors. Unless you add a parameter to the <command>java</command> command
247 used in the <command>fop</command> script you may receive messages
248 similar to the one shown below:</para>
249
250 <para><computeroutput>Exception in thread "main" java.lang.OutOfMemoryError:
251 Java heap space</computeroutput></para>
252
253 <para>To avoid errors like this, you need to pass an extra parameter to
254 the <command>java</command> command used in the <command>fop</command>
255 script. This can be accomplished by creating a
256 <filename>~/.foprc</filename> (which is sourced by the
257 <command>fop</command> script) and adding the parameter to the
258 <envar>FOP_OPTS</envar> environment variable.</para>
259
260 <para>The <command>fop</command> script looks for a
261 <envar>FOP_HOME</envar> environment variable to locate the
262 <application>fop</application> class libraries. You can create this
263 variable using the <filename>~/.foprc</filename> file as well. Create
264 a <filename>~/.foprc</filename> file using the following commands:</para>
265
266<screen><userinput>cat &gt; ~/.foprc &lt;&lt; "EOF"
267<literal>FOP_OPTS="-Xmx<replaceable>&lt;RAM_Installed&gt;</replaceable>m"
268FOP_HOME="/opt/fop"</literal>
269EOF</userinput></screen>
270
271 <para>Replace <replaceable>&lt;RAM_Installed&gt;</replaceable> with a
272 number representing the amount of RAM installed in your computer (in
273 megabytes). An example would be
274 <userinput>FOP_OPTS="-Xmx768m"</userinput>.
275 <!-- the URL is broken
276 For more information about
277 memory issues running <application>fop</application>, see
278 <ulink url="http://xml.apache.org/fop/running.html#memory"/>.
279 -->
280 </para>
281
282 <para>To include the <command>fop</command> script in your path,
283 update your personal or system-wide profile with the following:</para>
284
285<screen><literal>PATH=$PATH:/opt/fop</literal></screen>
286
287 <note><para>Running <command>fop</command> can be somewhat verbose.
288 The default logging level can be changed from INFO to any of
289 FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE, ALL, or OFF.
290 To do this, edit
291 <filename>$JAVA_HOME/jre/lib/logging.properties</filename> and change
292 the entries for <option>.leval</option> and
293 <option>java.util.logging.ConsoleHandler.level</option> to
294 the desired value.</para></note>
295
296 </sect3>
297
298 </sect2>
299
300 <sect2 role="content">
301 <title>Contents</title>
302
303 <segmentedlist>
304 <segtitle>Installed Programs</segtitle>
305 <segtitle>Installed Libraries</segtitle>
306 <segtitle>Installed Directory</segtitle>
307
308 <seglistitem>
309 <seg>fop</seg>
310 <seg>fop.jar and numerous support library classes located in
311 <filename class='directory'>/opt/fop/{build,lib}</filename>; JAI
312 components include libmlib_jai.so, jai_codec.jar, jai_core.jar, and
313 mlibwrapper_jai.jar</seg>
314 <seg>/opt/fop-&fop-version;</seg>
315 </seglistitem>
316 </segmentedlist>
317
318 <variablelist>
319 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
320 <?dbfo list-presentation="list"?>
321 <?dbhtml list-presentation="table"?>
322
323 <varlistentry id="fop-prog">
324 <term><command>fop</command></term>
325 <listitem>
326 <para>is a wrapper script to the <command>java</command> command
327 which sets up the <application>fop</application>
328 environment and passes the required parameters.</para>
329 <indexterm zone="fop fop-prog">
330 <primary sortas="b-fop">fop</primary>
331 </indexterm>
332 </listitem>
333 </varlistentry>
334
335 <varlistentry id="fop.jar">
336 <term><filename class='libraryfile'>fop.jar</filename></term>
337 <listitem>
338 <para>contains all the <application>fop</application>
339 <application>Java</application> classes.</para>
340 <indexterm zone="fop fop.jar">
341 <primary sortas="c-fop.jar">fop.jar</primary>
342 </indexterm>
343 </listitem>
344 </varlistentry>
345
346 </variablelist>
347
348 </sect2>
349
350</sect1>
Note: See TracBrowser for help on using the repository browser.