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