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 xpdf-download-http "http://gd.tuwien.ac.at/publishing/xpdf/xpdf-&xpdf-version;.tar.gz">
|
---|
8 | <!ENTITY xpdf-download-ftp "ftp://ftp.foolabs.com/pub/xpdf/xpdf-&xpdf-version;.tar.gz">
|
---|
9 | <!ENTITY xpdf-md5sum "599dc4cc65a07ee868cf92a667a913d2">
|
---|
10 | <!ENTITY xpdf-size "659 KB">
|
---|
11 | <!ENTITY xpdf-buildsize "46 MB">
|
---|
12 | <!ENTITY xpdf-time "0.4 SBU">
|
---|
13 | <!ENTITY xpdf-patch "xpdf-&xpdf-version;pl3.patch">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="xpdf" xreflabel="Xpdf-&xpdf-version;">
|
---|
17 | <?dbhtml filename="xpdf.html"?>
|
---|
18 |
|
---|
19 | <sect1info>
|
---|
20 | <othername>$LastChangedBy$</othername>
|
---|
21 | <date>$Date$</date>
|
---|
22 | </sect1info>
|
---|
23 |
|
---|
24 | <title>Xpdf-&xpdf-version;</title>
|
---|
25 |
|
---|
26 | <indexterm zone="xpdf">
|
---|
27 | <primary sortas="a-Xpdf">Xpdf</primary>
|
---|
28 | </indexterm>
|
---|
29 |
|
---|
30 | <sect2 role="package">
|
---|
31 | <title>Introduction to Xpdf</title>
|
---|
32 |
|
---|
33 | <para><application>Xpdf</application> is a viewer for Adobe's free
|
---|
34 | Portable Document Format (PDF) which is both fast and small and
|
---|
35 | comes with some useful command-line utilities.</para>
|
---|
36 |
|
---|
37 | &lfs65_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>Download (HTTP): <ulink url="&xpdf-download-http;"/></para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download (FTP): <ulink url="&xpdf-download-ftp;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download MD5 sum: &xpdf-md5sum;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download size: &xpdf-size;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Estimated disk space required: &xpdf-buildsize;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated build time: &xpdf-time;</para>
|
---|
58 | </listitem>
|
---|
59 | </itemizedlist>
|
---|
60 |
|
---|
61 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
62 | <itemizedlist spacing='compact'>
|
---|
63 | <listitem>
|
---|
64 | <para>Required patch: <ulink
|
---|
65 | url="ftp://ftp.foolabs.com/pub/xpdf/&xpdf-patch;"/></para>
|
---|
66 | </listitem>
|
---|
67 | </itemizedlist>
|
---|
68 |
|
---|
69 | <bridgehead renderas="sect3">Xpdf Dependencies</bridgehead>
|
---|
70 |
|
---|
71 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
72 | <para role="required"><xref linkend="lesstif"/></para>
|
---|
73 |
|
---|
74 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
75 | <para role="optional"><xref linkend="gs"/><!-- or <xref linkend="espgs"/> -->
|
---|
76 | (just the fonts),
|
---|
77 | <ulink url="http://www.sfr-fresh.com/linux/misc/t1lib">t1lib</ulink>, and
|
---|
78 | <ulink url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink></para>
|
---|
79 |
|
---|
80 | <para condition="html" role="usernotes">User Notes:
|
---|
81 | <ulink url="&blfs-wiki;/Xpdf"/></para>
|
---|
82 |
|
---|
83 | </sect2>
|
---|
84 |
|
---|
85 | <sect2 role="installation">
|
---|
86 | <title>Installation of Xpdf</title>
|
---|
87 |
|
---|
88 | <para>Install <application>Xpdf</application> by running the following
|
---|
89 | commands:</para>
|
---|
90 |
|
---|
91 | <screen><userinput>patch -Np1 -i ../&xpdf-patch; &&
|
---|
92 | ./configure --prefix=/usr \
|
---|
93 | --sysconfdir=/etc \
|
---|
94 | --with-freetype2-includes=/usr/include/freetype2 \
|
---|
95 | --enable-opi \
|
---|
96 | --enable-multithreaded \
|
---|
97 | --enable-wordlist &&
|
---|
98 | make</userinput></screen>
|
---|
99 |
|
---|
100 | <para>This package does not come with a test suite.</para>
|
---|
101 |
|
---|
102 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
103 |
|
---|
104 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
105 |
|
---|
106 | </sect2>
|
---|
107 |
|
---|
108 | <sect2 role="commands">
|
---|
109 | <title>Command Explanations</title>
|
---|
110 |
|
---|
111 | <para><option>--enable-a4-paper</option>: This switch must be
|
---|
112 | added to set DIN A4 as the standard paper format.</para>
|
---|
113 |
|
---|
114 | </sect2>
|
---|
115 |
|
---|
116 | <sect2 role="configuration">
|
---|
117 | <title>Configuring Xpdf</title>
|
---|
118 |
|
---|
119 | <sect3 id="xpdf-config">
|
---|
120 | <title>Config Files</title>
|
---|
121 |
|
---|
122 | <para><filename>/etc/xpdfrc</filename> and
|
---|
123 | <filename>~/.xpdfrc</filename></para>
|
---|
124 |
|
---|
125 | <indexterm zone="xpdf xpdf-config">
|
---|
126 | <primary sortas="e-AA.xpdfrc">~/.xpdfrc</primary>
|
---|
127 | </indexterm>
|
---|
128 |
|
---|
129 | <indexterm zone="xpdf xpdf-config">
|
---|
130 | <primary sortas="e-etc-xpdfrc">/etc/xpdfrc</primary>
|
---|
131 | </indexterm>
|
---|
132 |
|
---|
133 | </sect3>
|
---|
134 |
|
---|
135 | <sect3>
|
---|
136 | <title>Configuration Information</title>
|
---|
137 |
|
---|
138 | <para>In the <filename class='directory'>/etc</filename> directory you
|
---|
139 | will find a sample <filename>xpdfrc</filename> that can be either copied
|
---|
140 | to <filename>~/.xpdfrc</filename> or taken as an example to write your
|
---|
141 | own configuration file. Below you'll find a condensed version of the
|
---|
142 | file you may wish to build from.</para>
|
---|
143 |
|
---|
144 | <screen><literal># Example .xpdfrc
|
---|
145 | displayFontT1 Times-Roman /usr/share/ghostscript/fonts/n021003l.pfb
|
---|
146 | displayFontT1 Times-Italic /usr/share/ghostscript/fonts/n021023l.pfb
|
---|
147 | displayFontT1 Times-Bold /usr/share/ghostscript/fonts/n021004l.pfb
|
---|
148 | displayFontT1 Times-BoldItalic /usr/share/ghostscript/fonts/n021024l.pfb
|
---|
149 | displayFontT1 Helvetica /usr/share/ghostscript/fonts/n019003l.pfb
|
---|
150 | displayFontT1 Helvetica-Oblique /usr/share/ghostscript/fonts/n019023l.pfb
|
---|
151 | displayFontT1 Helvetica-Bold /usr/share/ghostscript/fonts/n019004l.pfb
|
---|
152 | displayFontT1 Helvetica-BoldOblique /usr/share/ghostscript/fonts/n019024l.pfb
|
---|
153 | displayFontT1 Courier /usr/share/ghostscript/fonts/n022003l.pfb
|
---|
154 | displayFontT1 Courier-Oblique /usr/share/ghostscript/fonts/n022023l.pfb
|
---|
155 | displayFontT1 Courier-Bold /usr/share/ghostscript/fonts/n022004l.pfb
|
---|
156 | displayFontT1 Courier-BoldOblique /usr/share/ghostscript/fonts/n022024l.pfb
|
---|
157 | displayFontT1 Symbol /usr/share/ghostscript/fonts/s050000l.pfb
|
---|
158 | displayFontT1 ZapfDingbats /usr/share/ghostscript/fonts/d050000l.pfb
|
---|
159 |
|
---|
160 | fontDir /usr/share/fonts/X11-TTF
|
---|
161 |
|
---|
162 | psFile "|lpr"
|
---|
163 | psPaperSize letter
|
---|
164 | #psPaperSize A4
|
---|
165 | textEOL unix
|
---|
166 |
|
---|
167 | enableT1lib yes
|
---|
168 | enableFreeType yes
|
---|
169 | antialias yes
|
---|
170 |
|
---|
171 | urlCommand "links -g %s"</literal></screen>
|
---|
172 |
|
---|
173 | </sect3>
|
---|
174 |
|
---|
175 | </sect2>
|
---|
176 |
|
---|
177 | <sect2 role="content" id="xpdf-content"
|
---|
178 | xreflabel="See the Xpdf-&xpdf-version; program descriptions">
|
---|
179 | <title>Contents</title>
|
---|
180 |
|
---|
181 | <segmentedlist>
|
---|
182 | <segtitle>Installed Programs</segtitle>
|
---|
183 | <segtitle>Installed Libraries</segtitle>
|
---|
184 | <segtitle>Installed Directories</segtitle>
|
---|
185 |
|
---|
186 | <seglistitem>
|
---|
187 | <seg>pdffonts, pdfimages, pdfinfo, pdftoppm, pdftops, pdftotext,
|
---|
188 | and xpdf</seg>
|
---|
189 | <seg>None</seg>
|
---|
190 | <seg>None</seg>
|
---|
191 | </seglistitem>
|
---|
192 | </segmentedlist>
|
---|
193 |
|
---|
194 | <variablelist>
|
---|
195 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
196 | <?dbfo list-presentation="list"?>
|
---|
197 | <?dbhtml list-presentation="table"?>
|
---|
198 |
|
---|
199 | <varlistentry id="pdffonts">
|
---|
200 | <term><command>pdffonts</command></term>
|
---|
201 | <listitem>
|
---|
202 | <para>lists the fonts used in a PDF file along
|
---|
203 | with various information for each font.</para>
|
---|
204 | <indexterm zone="xpdf pdffonts">
|
---|
205 | <primary sortas="b-pdffonts">pdffonts</primary>
|
---|
206 | </indexterm>
|
---|
207 | </listitem>
|
---|
208 | </varlistentry>
|
---|
209 |
|
---|
210 | <varlistentry id="pdfimages">
|
---|
211 | <term><command>pdfimages</command></term>
|
---|
212 | <listitem>
|
---|
213 | <para>saves images from a PDF file as PPM, PBM, or JPEG files.</para>
|
---|
214 | <indexterm zone="xpdf pdfimages">
|
---|
215 | <primary sortas="b-pdfimages">pdfimages</primary>
|
---|
216 | </indexterm>
|
---|
217 | </listitem>
|
---|
218 | </varlistentry>
|
---|
219 |
|
---|
220 | <varlistentry id="pdfinfo">
|
---|
221 | <term><command>pdfinfo</command></term>
|
---|
222 | <listitem>
|
---|
223 | <para>prints the contents of the 'Info' dictionary (plus some
|
---|
224 | other useful information) from a PDF file.</para>
|
---|
225 | <indexterm zone="xpdf pdfinfo">
|
---|
226 | <primary sortas="b-pdfinfo">pdfinfo</primary>
|
---|
227 | </indexterm>
|
---|
228 | </listitem>
|
---|
229 | </varlistentry>
|
---|
230 |
|
---|
231 | <varlistentry id="pdftoppm">
|
---|
232 | <term><command>pdftoppm</command></term>
|
---|
233 | <listitem>
|
---|
234 | <para>converts PDF files to PBM, PGM and PPM formats.</para>
|
---|
235 | <indexterm zone="xpdf pdftoppm">
|
---|
236 | <primary sortas="b-pdftoppm">pdftoppm</primary>
|
---|
237 | </indexterm>
|
---|
238 | </listitem>
|
---|
239 | </varlistentry>
|
---|
240 |
|
---|
241 | <varlistentry id="pdftops">
|
---|
242 | <term><command>pdftops</command></term>
|
---|
243 | <listitem>
|
---|
244 | <para> converts PDF files to Postscript format.</para>
|
---|
245 | <indexterm zone="xpdf pdftops">
|
---|
246 | <primary sortas="b-pdftops">pdftops</primary>
|
---|
247 | </indexterm>
|
---|
248 | </listitem>
|
---|
249 | </varlistentry>
|
---|
250 |
|
---|
251 | <varlistentry id="pdftotext">
|
---|
252 | <term><command>pdftotext</command></term>
|
---|
253 | <listitem>
|
---|
254 | <para>parses ASCII text from PDF files.</para>
|
---|
255 | <indexterm zone="xpdf pdftotext">
|
---|
256 | <primary sortas="b-pdftotext">pdftotext</primary>
|
---|
257 | </indexterm>
|
---|
258 | </listitem>
|
---|
259 | </varlistentry>
|
---|
260 |
|
---|
261 | <varlistentry id="xpdf-prog">
|
---|
262 | <term><command>xpdf</command></term>
|
---|
263 | <listitem>
|
---|
264 | <para>displays files in PDF format.</para>
|
---|
265 | <indexterm zone="xpdf xpdf-prog">
|
---|
266 | <primary sortas="b-xpdf">xpdf</primary>
|
---|
267 | </indexterm>
|
---|
268 | </listitem>
|
---|
269 | </varlistentry>
|
---|
270 |
|
---|
271 | </variablelist>
|
---|
272 |
|
---|
273 | </sect2>
|
---|
274 |
|
---|
275 | </sect1>
|
---|