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