1 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
2 | "http://www.oasis-open.org/docbook/xml/4.3/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 "N/A">
|
---|
9 | <!ENTITY xpdf-size "534 KB">
|
---|
10 | <!ENTITY xpdf-buildsize "32 MB">
|
---|
11 | <!ENTITY xpdf-time "0.36 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 |
|
---|
22 | <sect2>
|
---|
23 | <title>Introduction to <application>Xpdf</application></title>
|
---|
24 |
|
---|
25 | <para><application>Xpdf</application> is a viewer for Adobe's free Portable
|
---|
26 | Document Format (<acronym>PDF</acronym>) which is both fast and small and
|
---|
27 | comes with some useful command-line utilities.</para>
|
---|
28 |
|
---|
29 | <sect3><title>Package information</title>
|
---|
30 | <itemizedlist spacing='compact'>
|
---|
31 | <listitem><para>Download (HTTP): <ulink
|
---|
32 | url="&xpdf-download-http;"/></para></listitem>
|
---|
33 | <listitem><para>Download (FTP): <ulink
|
---|
34 | url="&xpdf-download-ftp;"/></para></listitem>
|
---|
35 | <listitem><para>Download MD5 sum: &xpdf-md5sum;</para></listitem>
|
---|
36 | <listitem><para>Download size: &xpdf-size;</para></listitem>
|
---|
37 | <listitem><para>Estimated disk space required:
|
---|
38 | &xpdf-buildsize;</para></listitem>
|
---|
39 | <listitem><para>Estimated build time:
|
---|
40 | &xpdf-time;</para></listitem></itemizedlist>
|
---|
41 | </sect3>
|
---|
42 |
|
---|
43 | <sect3><title>Additional downloads</title>
|
---|
44 | <itemizedlist spacing='compact'>
|
---|
45 | <listitem><para>Required patch: <ulink
|
---|
46 | url="ftp://ftp.foolabs.com/pub/xpdf/xpdf-&xpdf-version;.patch"/></para>
|
---|
47 | </listitem>
|
---|
48 | <listitem><para>Required patch: <ulink
|
---|
49 | url="&patch-root;/xpdf-&xpdf-version;-freetype_2.1.7_hack-2.patch"/></para>
|
---|
50 | </listitem>
|
---|
51 | </itemizedlist></sect3>
|
---|
52 |
|
---|
53 | <sect3><title><application>Xpdf</application> dependencies</title>
|
---|
54 | <sect4><title>Required</title>
|
---|
55 | <para><xref linkend="lesstif"/></para>
|
---|
56 | </sect4>
|
---|
57 |
|
---|
58 | <sect4><title>Optional</title>
|
---|
59 | <para><xref linkend="gs"/> or <xref linkend="espgs"/> (just the fonts),
|
---|
60 | <ulink
|
---|
61 | url="http://gd.tuwien.ac.at/visual/ibiblio/libs/graphics/t1lib-5.0.2.tar.gz">
|
---|
62 | t1lib</ulink>
|
---|
63 | and <ulink
|
---|
64 | url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>
|
---|
65 | </para></sect4>
|
---|
66 | </sect3>
|
---|
67 |
|
---|
68 | </sect2>
|
---|
69 |
|
---|
70 | <sect2>
|
---|
71 | <title>Installation of <application>Xpdf</application></title>
|
---|
72 |
|
---|
73 | <para>Install <application>Xpdf</application> by running the following commands:
|
---|
74 | </para>
|
---|
75 |
|
---|
76 | <screen><userinput><command>patch -d xpdf -Np0 -i ../../xpdf-&xpdf-version;.patch &&
|
---|
77 | patch -Np1 -i ../xpdf-&xpdf-version;-freetype_2.1.7_hack-2.patch &&
|
---|
78 | ./configure --prefix=/usr --sysconfdir=/etc \
|
---|
79 | --with-freetype2-includes=/usr/include/freetype2 &&
|
---|
80 | make &&
|
---|
81 | make install</command></userinput></screen>
|
---|
82 |
|
---|
83 | </sect2>
|
---|
84 |
|
---|
85 | <sect2>
|
---|
86 | <title>Installation command explanations</title>
|
---|
87 |
|
---|
88 | <para><option>--enable-a4-paper</option>: This switch must be
|
---|
89 | added to set <acronym>DIN</acronym> A4 as the standard paper format.</para>
|
---|
90 |
|
---|
91 | </sect2>
|
---|
92 |
|
---|
93 | <sect2>
|
---|
94 | <title>Configuring <application>Xpdf</application></title>
|
---|
95 |
|
---|
96 | <sect3><title>Config files</title>
|
---|
97 | <para><filename>/etc/xpdfrc</filename>,
|
---|
98 | <filename>~/.xpdfrc</filename></para></sect3>
|
---|
99 |
|
---|
100 | <sect3><title>Configuration Information</title>
|
---|
101 |
|
---|
102 | <para>In the <filename class='directory'>/etc</filename> directory you will
|
---|
103 | find a sample <filename>xpdfrc</filename> that can be either copied to
|
---|
104 | <filename>~/.xpdfrc</filename> or taken as an example to write your own
|
---|
105 | configuration file.</para>
|
---|
106 |
|
---|
107 | <screen><userinput># Example .xpdfrc
|
---|
108 | displayFontT1 Times-Roman /usr/share/ghostscript/fonts/n021003l.pfb
|
---|
109 | displayFontT1 Times-Italic /usr/share/ghostscript/fonts/n021023l.pfb
|
---|
110 | displayFontT1 Times-Bold /usr/share/ghostscript/fonts/n021004l.pfb
|
---|
111 | displayFontT1 Times-BoldItalic /usr/share/ghostscript/fonts/n021024l.pfb
|
---|
112 | displayFontT1 Helvetica /usr/share/ghostscript/fonts/n019003l.pfb
|
---|
113 | displayFontT1 Helvetica-Oblique /usr/share/ghostscript/fonts/n019023l.pfb
|
---|
114 | displayFontT1 Helvetica-Bold /usr/share/ghostscript/fonts/n019004l.pfb
|
---|
115 | displayFontT1 Helvetica-BoldOblique /usr/share/ghostscript/fonts/n019024l.pfb
|
---|
116 | displayFontT1 Courier /usr/share/ghostscript/fonts/n022003l.pfb
|
---|
117 | displayFontT1 Courier-Oblique /usr/share/ghostscript/fonts/n022023l.pfb
|
---|
118 | displayFontT1 Courier-Bold /usr/share/ghostscript/fonts/n022004l.pfb
|
---|
119 | displayFontT1 Courier-BoldOblique /usr/share/ghostscript/fonts/n022024l.pfb
|
---|
120 | displayFontT1 Symbol /usr/share/ghostscript/fonts/s050000l.pfb
|
---|
121 | displayFontT1 ZapfDingbats /usr/share/ghostscript/fonts/d050000l.pfb
|
---|
122 |
|
---|
123 | fontDir /usr/X11R6/lib/X11/fonts/TTF
|
---|
124 |
|
---|
125 | psFile "|lpr"
|
---|
126 | psPaperSize letter
|
---|
127 | #psPaperSize A4
|
---|
128 | textEOL unix
|
---|
129 |
|
---|
130 | enableT1lib yes
|
---|
131 | enableFreeType yes
|
---|
132 | antialias yes
|
---|
133 |
|
---|
134 | urlCommand "links -g %s"</userinput></screen>
|
---|
135 | </sect3>
|
---|
136 |
|
---|
137 | </sect2>
|
---|
138 |
|
---|
139 | <sect2>
|
---|
140 | <title>Contents</title>
|
---|
141 |
|
---|
142 | <para>The <application>Xpdf</application> package contains
|
---|
143 | <command>xpdf</command>, <command>pdftops</command>,
|
---|
144 | <command>pdftotext</command>, <command>pdftoppm</command>,
|
---|
145 | <command>pdffonts</command>, <command>pdfimages</command> and
|
---|
146 | <command>pdfinfo</command>.</para>
|
---|
147 | </sect2>
|
---|
148 |
|
---|
149 | <sect2><title>Description</title>
|
---|
150 |
|
---|
151 | <sect3><title>xpdf</title>
|
---|
152 | <para><command>xpdf</command> displays files in <acronym>PDF</acronym>
|
---|
153 | format.</para></sect3>
|
---|
154 |
|
---|
155 | <sect3><title>pdftops</title>
|
---|
156 | <para><command>pdftops</command> converts <acronym>PDF</acronym> files to
|
---|
157 | <acronym>PS</acronym> format.</para></sect3>
|
---|
158 |
|
---|
159 | <sect3><title>pdftotext</title>
|
---|
160 | <para><command>pdftotext</command> parses <acronym>ASCII</acronym> text from
|
---|
161 | <acronym>PDF</acronym> files.</para></sect3>
|
---|
162 |
|
---|
163 | <sect3><title>pdftoppm</title>
|
---|
164 | <para><command>pdftoppm</command> converts <acronym>PDF</acronym> files to
|
---|
165 | <acronym>PBM</acronym>, <acronym>PGM</acronym>, <acronym>PPM</acronym>
|
---|
166 | formats.</para></sect3>
|
---|
167 |
|
---|
168 | <sect3><title>pdffonts</title>
|
---|
169 | <para><command>pdffonts</command> lists the fonts used in a
|
---|
170 | <acronym>PDF</acronym> file along with various information for each
|
---|
171 | font.</para></sect3>
|
---|
172 |
|
---|
173 | <sect3><title>pdfimages</title>
|
---|
174 | <para><command>pdfimages</command> saves images from a
|
---|
175 | <acronym>PDF</acronym> file as <acronym>PPM</acronym>,
|
---|
176 | <acronym>PBM</acronym>, or <acronym>JPEG</acronym> files.</para></sect3>
|
---|
177 |
|
---|
178 | <sect3><title>pdfinfo</title>
|
---|
179 | <para><command>pdfinfo</command> prints the contents of the 'Info'
|
---|
180 | dictionary (plus some other useful information) from a
|
---|
181 | <acronym>PDF</acronym> file.</para></sect3>
|
---|
182 |
|
---|
183 | </sect2>
|
---|
184 |
|
---|
185 | </sect1>
|
---|