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