source: pst/ps/fop.xml@ d352a28

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d352a28 was d352a28, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Adding automatized scripts generation related tags. Pst part.

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

  • Property mode set to 100644
File size: 14.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY fop-download-http "http://www.apache.org/dist/xml/fop/fop-&fop-version;-src.tar.gz">
8 <!ENTITY fop-download-ftp "ftp://apache.mirrors.pair.com/xml/fop/source/fop-&fop-version;-src.tar.gz">
9 <!ENTITY fop-md5sum "1a31eb1357e5d4b8d32d4cb3edae2da2">
10 <!ENTITY fop-size "7.8 MB">
11 <!ENTITY fop-buildsize "45.3 MB">
12 <!ENTITY fop-time "0.25 SBU">
13
14 <!ENTITY jai-download "http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&amp;PartDetailId=jai-1_1_2_01-oth-JPR&amp;SiteId=JSC&amp;TransactionId=noreg">
15 <!ENTITY jai-md5sum "f2be3619a8d002eff3874355e96327eb">
16 <!ENTITY jai-size "2.6 MB">
17]>
18
19<sect1 id="fop" xreflabel="FOP-&fop-version;">
20 <?dbhtml filename="fop.html"?>
21
22 <sect1info>
23 <othername>$LastChangedBy$</othername>
24 <date>$Date$</date>
25 <keywordset>
26 <keyword role="package">fop-&fop-version;-src.tar</keyword>
27 <keyword role="ftptdir">fop</keyword>
28 </keywordset>
29 </sect1info>
30
31 <title>FOP-&fop-version;</title>
32
33 <indexterm zone="fop">
34 <primary sortas="a-FOP">FOP</primary>
35 </indexterm>
36
37 <sect2 role="package">
38 <title>Introduction to FOP</title>
39
40 <para>The <application>FOP</application> (Formatting Objects Processor)
41 package contains a print formatter driven by XSL formatting objects
42 (XSL-FO). It is a <application>Java</application> application that reads
43 a formatting object tree and renders the resulting pages to a specified
44 output. Output formats currently supported include PDF, PCL, PostScript,
45 SVG, XML (area tree representation), print, AWT, MIF and ASCII text. The
46 primary output target is PDF.</para>
47
48 <bridgehead renderas="sect3">Package Information</bridgehead>
49 <itemizedlist spacing="compact">
50 <listitem>
51 <para>Download (HTTP): <ulink url="&fop-download-http;"/></para>
52 </listitem>
53 <listitem>
54 <para>Download (FTP): <ulink url="&fop-download-ftp;"/></para>
55 </listitem>
56 <listitem>
57 <para>Download MD5 sum: &fop-md5sum;</para>
58 </listitem>
59 <listitem>
60 <para>Download size: &fop-size;</para>
61 </listitem>
62 <listitem>
63 <para>Estimated disk space required: &fop-buildsize;</para>
64 </listitem>
65 <listitem>
66 <para>Estimated build time: &fop-time;</para>
67 </listitem>
68 </itemizedlist>
69
70 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
71
72 <itemizedlist spacing="compact">
73 <title>Required package</title>
74 <listitem>
75 <para><application>Java</application> Advanced Imaging (JAI) API
76 components: <ulink url="&jai-download;">
77 http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&amp;</ulink>
78 <ulink url="&jai-download;">
79 PartDetailId=jai-1_1_2_01-oth-JPR&amp;SiteId=JSC&amp;TransactionId=noreg</ulink>
80 </para>
81 </listitem>
82 <listitem>
83 <para>Download MD5 sum: &jai-md5sum;</para>
84 </listitem>
85 <listitem>
86 <para>Download size: &jai-size;</para>
87 </listitem>
88 </itemizedlist>
89
90 <para>Choose the <quote><application>Linux</application>
91 <application>JDK</application> Install</quote> file after
92 accepting the license agreement.</para>
93
94 <itemizedlist spacing='compact'>
95 <title>Required patch</title>
96 <listitem>
97 <para><ulink
98 url="&patch-root;/fop-&fop-version;-jdk_1.5.0-1.patch"/></para>
99 </listitem>
100 </itemizedlist>
101
102 <bridgehead renderas="sect3">FOP Dependencies</bridgehead>
103
104 <bridgehead renderas="sect4">Required</bridgehead>
105 <para role="required"><xref linkend="jdk"/></para>
106
107 <bridgehead renderas="sect4">Optional</bridgehead>
108 <para role="optional"><xref linkend="libxslt"/>,
109 <ulink url="http://java.sun.com/products/jimi/">JIMI SDK</ulink>,
110 <ulink url="http://xml.apache.org/batik/">Batik</ulink> and
111 <ulink url="http://forrest.apache.org/">Forrest</ulink> (only used to rebuild
112 the documentation)</para>
113
114 </sect2>
115
116 <sect2 role="installation">
117 <title>Installation of FOP</title>
118
119 <note>
120 <para>Ensure <envar>$JAVA_HOME</envar> is set correctly before beginning
121 the build.</para>
122 </note>
123
124 <para>Some versions of tar will display a message similar to
125 <quote><computeroutput>tar: A lone zero block at 33476</computeroutput></quote>
126 when unpacking the source tarball. You may safely ignore this message.</para>
127
128 <sect3>
129 <title>Installing JAI</title>
130
131 <para>Install the JAI components by running the following commands as
132 the <systemitem class="username">root</systemitem> user while in the
133 root of the <application>FOP</application> source tree:</para>
134
135<screen role="root"><userinput>chmod 755 ../jai-1_1_2_01-lib-linux-i586-jdk.bin &amp;&amp;
136FOP_BUILD_DIR=$(pwd) &amp;&amp;
137cd $JAVA_HOME &amp;&amp;
138yes | $FOP_BUILD_DIR/../jai-1_1_2_01-lib-linux-i586-jdk.bin &amp;&amp;
139cd $FOP_BUILD_DIR</userinput></screen>
140
141 </sect3>
142
143 <sect3>
144 <title>Installing FOP required components</title>
145
146 <para>Install <application>FOP</application> by running the
147 following commands:</para>
148
149<screen><userinput>patch -Np1 -i ../fop-&fop-version;-jdk_&jdk-src-version;-1.patch &amp;&amp;
150./build.sh &amp;&amp;
151sed -i -e "s/build/lib/" fop.sh</userinput></screen>
152
153 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
154
155<screen role="root"><userinput>install -v -d -m755 \
156 /opt/fop-&fop-version;/{bin,lib,docs/{general,lib,site}} &amp;&amp;
157install -v -m755 fop.sh /opt/fop-&fop-version;/bin &amp;&amp;
158install -v -m644 build/fop.jar lib/avalon-framework-cvs-20020806.jar \
159 /opt/fop-&fop-version;/lib &amp;&amp;
160install -v -m644 docs/* /opt/fop-&fop-version;/docs &amp;&amp;
161install -v -m644 CHANGES LICENSE README ReleaseNotes.html STATUS \
162 /opt/fop-&fop-version;/docs/general &amp;&amp;
163install -v -m644 lib/{avalon.LICENSE.txt,readme} \
164 /opt/fop-&fop-version;/docs/lib &amp;&amp;
165cp -v -R build/site/* /opt/fop-&fop-version;/docs/site &amp;&amp;
166ln -svf fop-&fop-version; /opt/fop</userinput></screen>
167
168 </sect3>
169
170 <sect3>
171 <title>Installing the Batik JAR</title>
172
173 <para>You'll need to install one additional <application>Java</application>
174 class library to process SVG objects. This library is part of the
175 <ulink url="http://xml.apache.org/batik/">Batik</ulink> package, but is
176 also included with the <application>FOP</application> package. If you
177 have <application>Batik</application> installed, ensure the
178 <filename>batik.jar</filename> library is included in your
179 <envar>$CLASSPATH</envar> environment variable. Alternatively, create a
180 symbolic link from <filename>/opt/fop-&fop-version;/lib/batik.jar</filename>
181 pointing to the full path of the installed <filename>batik.jar</filename>
182 file so that the <command>fop.sh</command> script will automatically pick it
183 up.</para>
184
185 <para>If you don't have the <application>Batik</application> package
186 installed, run the following commands as the <systemitem
187 class="username">root</systemitem> user:</para>
188
189<screen role="root"><userinput>install -v -m644 lib/batik.jar /opt/fop-&fop-version;/lib &amp;&amp;
190install -v -m644 lib/batik.LICENSE.txt \
191 /opt/fop-&fop-version;/docs/lib</userinput></screen>
192
193 </sect3>
194
195 <sect3>
196 <title>Installing the Xalan-Java components</title>
197
198 <para>The components of <application>FOP</application> required to
199 process FO files created by an XSL transformation engine (also known
200 as an XSLT processor) is now complete. An XSL transformation engine
201 (<command>xsltproc</command>) is included with the
202 <xref linkend="libxslt"/> package in BLFS. The
203 <application>FOP</application> package includes components of
204 <ulink url="http://xml.apache.org/xalan-j/">Xalan-Java</ulink> to
205 accomplish XSL transformations. If you have the
206 <application>Xalan-Java</application> package installed, skip to
207 the next section.</para>
208
209 <para>If you wish to install the <application>Xalan-Java</application>
210 components provided by the <application>FOP</application>
211 package, run the following commands as the <systemitem
212 class="username">root</systemitem> user:</para>
213
214<screen role="root"><userinput>sed -i -e "s/build/lib/" xalan.sh &amp;&amp;
215install -v -m755 xalan.sh /opt/fop-&fop-version;/bin &amp;&amp;
216install -v -m644 lib/xml-apis.jar \
217 lib/xercesImpl-2.2.1.jar \
218 lib/xalan-2.4.1.jar \
219 /opt/fop-&fop-version;/lib &amp;&amp;
220install -v -m644 lib/{xml-apis,xerces,xalan}.LICENSE.txt \
221 lib/xml-apis.README.txt \
222 /opt/fop-&fop-version;/docs/lib</userinput></screen>
223
224 </sect3>
225
226 <sect3>
227 <title>Installing the Jimi SDK JAR</title>
228
229 <para>If you installed the Java Image I/O class library
230 (<application>Jimi SDK</application>) into the
231 <application>FOP</application> source tree
232 <filename class='directory'>lib</filename> directory before building
233 <application>FOP</application> (this will enable Jimi
234 support), ensure you also install this JAR file into
235 <filename class='directory'>/opt/fop-&fop-version;/lib</filename>.</para>
236
237 </sect3>
238
239 </sect2>
240
241 <sect2 role="commands">
242 <title>Command Explanations</title>
243
244 <para><command>yes | $FOP_BUILD_DIR/../jai-...-jdk.bin</command>: This
245 command installs the <application>JAI</application> components
246 into the <application>JDK</application> file structure. The
247 <command>yes</command> command is piped through so that you don't have to
248 scroll through four pages of the license agreement and automatically responds
249 <quote>yes</quote> to the agreement. <envar>$FOP_BUILD_DIR</envar> is used as
250 a reference point to the source executable and as a method to return back to
251 the <application>FOP</application> source tree.</para>
252
253 <para><command>sed -i -e "s/build/lib/" ...</command>: These commands modify
254 the installed shell scripts so that the location of the installed
255 <filename>fop.jar</filename> file is correctly identified.</para>
256
257 <para><command>install -v ...; cp -v ...</command>: There is no installation
258 script provided by the <application>FOP</application>
259 package. These commands install the package.</para>
260
261 <para><command>ln -svf fop-&fop-version; /opt/fop</command>: This creates a
262 convenience symlink so that <envar>$FOP_HOME</envar> doesn't have to be
263 changed each time there's a package version change.</para>
264
265 </sect2>
266
267 <sect2 role="configuration">
268 <title>Configuring FOP</title>
269
270 <sect3 id="fop-config">
271 <title>Config Files</title>
272
273 <para><filename>~/.foprc</filename></para>
274
275 <indexterm zone="fop fop-config">
276 <primary sortas="e-AA.foprc">~/.foprc</primary>
277 </indexterm>
278
279 </sect3>
280
281 <sect3>
282 <title>Configuration Information</title>
283
284 <para>Using <application>FOP</application> to process some large FO's
285 (including the FO derived from the BLFS XML sources), can lead to memory
286 errors. Unless you add a parameter to the <command>java</command> command
287 used in the <command>fop.sh</command> script you may receive messages
288 similar to the one shown below:</para>
289
290 <para><computeroutput>Exception in thread "main" java.lang.OutOfMemoryError:
291 Java heap space</computeroutput></para>
292
293 <para>To avoid errors like this, you need to pass an extra parameter to the
294 <command>java</command> command used in the <command>fop.sh</command> script.
295 This can be accomplished by creating a <filename>~/.foprc</filename> (which
296 is sourced by the <command>fop.sh</command> script) and adding the parameter
297 to the <envar>FOP_OPTS</envar> environment variable.</para>
298
299 <para>The <command>fop.sh</command> script looks for a
300 <envar>FOP_HOME</envar> environment variable to locate the
301 <application>FOP</application> class libraries. You can create this
302 variable using the <filename>~/.foprc</filename> file as well. Create
303 a <filename>~/.foprc</filename> file using the following commands:</para>
304
305<screen><userinput>cat &gt; ~/.foprc &lt;&lt; "EOF"
306<literal>FOP_OPTS="-Xmx<replaceable>[RAM_Installed]</replaceable>m"
307FOP_HOME="/opt/fop"</literal>
308
309EOF</userinput></screen>
310
311 <para>Replace <replaceable>[RAM_Installed]</replaceable> with a number
312 representing the amount of RAM installed in your computer. An example would
313 be <userinput>FOP_OPTS="-Xmx768m"</userinput>. For more information about
314 memory issues running <application>FOP</application>, see
315 <ulink url="http://xml.apache.org/fop/running.html#memory"/>.</para>
316
317 <para>To include the <command>fop.sh</command> script in your path, update
318 your personal or system-wide profile with the following:</para>
319
320<screen><literal>PATH=$PATH:/opt/fop/bin</literal></screen>
321
322 </sect3>
323
324 </sect2>
325
326 <sect2 role="content">
327 <title>Contents</title>
328
329 <segmentedlist>
330 <segtitle>Installed Programs</segtitle>
331 <segtitle>Installed Libraries</segtitle>
332 <segtitle>Installed Directory</segtitle>
333
334 <seglistitem>
335 <seg>fop.sh and xalan.sh</seg>
336 <seg>avalon-framework-cvs-20020806.jar, batik.jar, fop.jar,
337 xalan-2.4.1.jar, xercesImpl-2.2.1.jar, and xml-apis.jar. JAI components
338 include libmlib_jai.so, jai_codec.jar, jai_core.jar, and
339 mlibwrapper_jai.jar</seg>
340 <seg>/opt/fop-&fop-version;</seg>
341 </seglistitem>
342 </segmentedlist>
343
344 <variablelist>
345 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
346 <?dbfo list-presentation="list"?>
347 <?dbhtml list-presentation="table"?>
348
349 <varlistentry id="fop.sh">
350 <term><command>fop.sh</command></term>
351 <listitem>
352 <para>is a wrapper script to the <command>java</command> command
353 which sets up the <application>FOP</application>
354 environment and passes the required parameters.</para>
355 <indexterm zone="fop fop.sh">
356 <primary sortas="b-fop.sh">fop.sh</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
361 <varlistentry id="fop.jar">
362 <term><filename class='libraryfile'>fop.jar</filename></term>
363 <listitem>
364 <para>contains all the <application>FOP</application>
365 <application>Java</application> classes.</para>
366 <indexterm zone="fop fop.jar">
367 <primary sortas="c-fop.jar">fop.jar</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
371
372 </variablelist>
373
374 </sect2>
375
376</sect1>
Note: See TracBrowser for help on using the repository browser.