[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 |
|
---|
[0bbf4c4] | 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 "e004c69c7dddef165d768b1362b44268">
|
---|
| 10 | <!ENTITY xpdf-size "599 KB">
|
---|
| 11 | <!ENTITY xpdf-buildsize "38.1 MB">
|
---|
| 12 | <!ENTITY xpdf-time "0.4 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 |
|
---|
[0bbf4c4] | 58 | <!--
|
---|
[b29ed97c] | 59 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 60 | <itemizedlist spacing='compact'>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Required patch: <ulink
|
---|
| 63 | url="ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.00pl1.patch"/></para>
|
---|
| 64 | </listitem>
|
---|
| 65 | <listitem>
|
---|
| 66 | <para>Required patch: <ulink
|
---|
| 67 | url="ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.00pl2.patch"/></para>
|
---|
| 68 | </listitem>
|
---|
| 69 | <listitem>
|
---|
| 70 | <para>Required patch: <ulink
|
---|
| 71 | url="ftp://ftp.foolabs.com/pub/xpdf/xpdf-&xpdf-version;.patch"/></para>
|
---|
| 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>Required patch: <ulink
|
---|
| 75 | url="&patch-root;/xpdf-&xpdf-version;-freetype_2.1.7_hack-2.patch"/></para>
|
---|
| 76 | </listitem>
|
---|
| 77 | </itemizedlist>
|
---|
[0bbf4c4] | 78 | -->
|
---|
[b29ed97c] | 79 |
|
---|
| 80 | <bridgehead renderas="sect3">Xpdf Dependencies</bridgehead>
|
---|
| 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 83 | <para><xref linkend="lesstif"/></para>
|
---|
| 84 |
|
---|
| 85 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 86 | <para><xref linkend="gs"/> or <xref linkend="espgs"/> (just the fonts),
|
---|
| 87 | <ulink
|
---|
[da02666] | 88 | url="http://gd.tuwien.ac.at/visual/ibiblio/libs/graphics/t1lib-5.1.0.tar.gz">
|
---|
[b29ed97c] | 89 | t1lib</ulink>
|
---|
| 90 | and <ulink
|
---|
| 91 | url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink></para>
|
---|
| 92 |
|
---|
| 93 | </sect2>
|
---|
| 94 |
|
---|
| 95 | <sect2 role="installation">
|
---|
| 96 | <title>Installation of Xpdf</title>
|
---|
| 97 |
|
---|
| 98 | <para>Install <application>Xpdf</application> by running the following
|
---|
| 99 | commands:</para>
|
---|
| 100 |
|
---|
[0bbf4c4] | 101 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
|
---|
| 102 | --with-freetype2-includes=/usr/include/freetype2 \
|
---|
| 103 | --enable-opi --enable-multithreaded --enable-wordlist &&
|
---|
[b29ed97c] | 104 | make</userinput></screen>
|
---|
[3a02b4f] | 105 |
|
---|
[b29ed97c] | 106 | <para>This package does not come with a test suite.</para>
|
---|
[0167f08] | 107 |
|
---|
[b29ed97c] | 108 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[3a02b4f] | 109 |
|
---|
[b29ed97c] | 110 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[959f944] | 111 |
|
---|
[b29ed97c] | 112 | </sect2>
|
---|
[959f944] | 113 |
|
---|
[b29ed97c] | 114 | <sect2 role="commands">
|
---|
| 115 | <title>Command Explanations</title>
|
---|
[959f944] | 116 |
|
---|
[b29ed97c] | 117 | <para><option>--enable-a4-paper</option>: This switch must be
|
---|
| 118 | added to set DIN A4 as the standard paper format.</para>
|
---|
[959f944] | 119 |
|
---|
[b29ed97c] | 120 | </sect2>
|
---|
[959f944] | 121 |
|
---|
[b29ed97c] | 122 | <sect2 role="configuration">
|
---|
| 123 | <title>Configuring Xpdf</title>
|
---|
[959f944] | 124 |
|
---|
[b29ed97c] | 125 | <sect3 id="xpdf-config">
|
---|
| 126 | <title>Config Files</title>
|
---|
[959f944] | 127 |
|
---|
[b29ed97c] | 128 | <para><filename>/etc/xpdfrc</filename> and
|
---|
| 129 | <filename>~/.xpdfrc</filename></para>
|
---|
[959f944] | 130 |
|
---|
[b29ed97c] | 131 | <indexterm zone="xpdf xpdf-config">
|
---|
| 132 | <primary sortas="e-AA.xpdfrc">~/.xpdfrc</primary>
|
---|
| 133 | </indexterm>
|
---|
[959f944] | 134 |
|
---|
[b29ed97c] | 135 | <indexterm zone="xpdf xpdf-config">
|
---|
| 136 | <primary sortas="e-etc-xpdfrc">/etc/xpdfrc</primary>
|
---|
| 137 | </indexterm>
|
---|
| 138 |
|
---|
| 139 | </sect3>
|
---|
| 140 |
|
---|
| 141 | <sect3>
|
---|
| 142 | <title>Configuration Information</title>
|
---|
| 143 |
|
---|
| 144 | <para>In the <filename class='directory'>/etc</filename> directory you
|
---|
| 145 | will find a sample <filename>xpdfrc</filename> that can be either copied
|
---|
| 146 | to <filename>~/.xpdfrc</filename> or taken as an example to write your
|
---|
| 147 | own configuration file. Below you'll find a condensed version of the
|
---|
| 148 | file you may wish to build from.</para>
|
---|
| 149 |
|
---|
| 150 | <screen><literal># Example .xpdfrc
|
---|
[5d34b74] | 151 | displayFontT1 Times-Roman /usr/share/ghostscript/fonts/n021003l.pfb
|
---|
| 152 | displayFontT1 Times-Italic /usr/share/ghostscript/fonts/n021023l.pfb
|
---|
| 153 | displayFontT1 Times-Bold /usr/share/ghostscript/fonts/n021004l.pfb
|
---|
| 154 | displayFontT1 Times-BoldItalic /usr/share/ghostscript/fonts/n021024l.pfb
|
---|
| 155 | displayFontT1 Helvetica /usr/share/ghostscript/fonts/n019003l.pfb
|
---|
| 156 | displayFontT1 Helvetica-Oblique /usr/share/ghostscript/fonts/n019023l.pfb
|
---|
| 157 | displayFontT1 Helvetica-Bold /usr/share/ghostscript/fonts/n019004l.pfb
|
---|
| 158 | displayFontT1 Helvetica-BoldOblique /usr/share/ghostscript/fonts/n019024l.pfb
|
---|
| 159 | displayFontT1 Courier /usr/share/ghostscript/fonts/n022003l.pfb
|
---|
| 160 | displayFontT1 Courier-Oblique /usr/share/ghostscript/fonts/n022023l.pfb
|
---|
| 161 | displayFontT1 Courier-Bold /usr/share/ghostscript/fonts/n022004l.pfb
|
---|
| 162 | displayFontT1 Courier-BoldOblique /usr/share/ghostscript/fonts/n022024l.pfb
|
---|
| 163 | displayFontT1 Symbol /usr/share/ghostscript/fonts/s050000l.pfb
|
---|
| 164 | displayFontT1 ZapfDingbats /usr/share/ghostscript/fonts/d050000l.pfb
|
---|
[959f944] | 165 |
|
---|
| 166 | fontDir /usr/X11R6/lib/X11/fonts/TTF
|
---|
| 167 |
|
---|
| 168 | psFile "|lpr"
|
---|
| 169 | psPaperSize letter
|
---|
[67f79cec] | 170 | #psPaperSize A4
|
---|
[959f944] | 171 | textEOL unix
|
---|
| 172 |
|
---|
| 173 | enableT1lib yes
|
---|
| 174 | enableFreeType yes
|
---|
| 175 | antialias yes
|
---|
| 176 |
|
---|
[b29ed97c] | 177 | urlCommand "links -g %s"</literal></screen>
|
---|
| 178 |
|
---|
| 179 | </sect3>
|
---|
| 180 |
|
---|
| 181 | </sect2>
|
---|
| 182 |
|
---|
| 183 | <sect2 role="content">
|
---|
| 184 | <title>Contents</title>
|
---|
| 185 |
|
---|
| 186 | <segmentedlist>
|
---|
| 187 | <segtitle>Installed Programs</segtitle>
|
---|
| 188 | <segtitle>Installed Libraries</segtitle>
|
---|
| 189 | <segtitle>Installed Directories</segtitle>
|
---|
| 190 |
|
---|
| 191 | <seglistitem>
|
---|
| 192 | <seg>pdffonts, pdfimages, pdfinfo, pdftoppm, pdftops, pdftotext,
|
---|
| 193 | and xpdf</seg>
|
---|
| 194 | <seg>None</seg>
|
---|
| 195 | <seg>None</seg>
|
---|
| 196 | </seglistitem>
|
---|
| 197 | </segmentedlist>
|
---|
| 198 |
|
---|
| 199 | <variablelist>
|
---|
| 200 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 201 | <?dbfo list-presentation="list"?>
|
---|
| 202 | <?dbhtml list-presentation="table"?>
|
---|
| 203 |
|
---|
| 204 | <varlistentry id="pdffonts">
|
---|
| 205 | <term><command>pdffonts</command></term>
|
---|
| 206 | <listitem>
|
---|
| 207 | <para>lists the fonts used in a PDF file along
|
---|
| 208 | with various information for each font.</para>
|
---|
| 209 | <indexterm zone="xpdf pdffonts">
|
---|
| 210 | <primary sortas="b-pdffonts">pdffonts</primary>
|
---|
| 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
| 215 | <varlistentry id="pdfimages">
|
---|
| 216 | <term><command>pdfimages</command></term>
|
---|
| 217 | <listitem>
|
---|
| 218 | <para>saves images from a PDF file as PPM, PBM, or JPEG files.</para>
|
---|
| 219 | <indexterm zone="xpdf pdfimages">
|
---|
| 220 | <primary sortas="b-pdfimages">pdfimages</primary>
|
---|
| 221 | </indexterm>
|
---|
| 222 | </listitem>
|
---|
| 223 | </varlistentry>
|
---|
| 224 |
|
---|
| 225 | <varlistentry id="pdfinfo">
|
---|
| 226 | <term><command>pdfinfo</command></term>
|
---|
| 227 | <listitem>
|
---|
| 228 | <para>prints the contents of the 'Info' dictionary (plus some
|
---|
| 229 | other useful information) from a PDF file.</para>
|
---|
| 230 | <indexterm zone="xpdf pdfinfo">
|
---|
| 231 | <primary sortas="b-pdfinfo">pdfinfo</primary>
|
---|
| 232 | </indexterm>
|
---|
| 233 | </listitem>
|
---|
| 234 | </varlistentry>
|
---|
| 235 |
|
---|
| 236 | <varlistentry id="pdftoppm">
|
---|
| 237 | <term><command>pdftoppm</command></term>
|
---|
| 238 | <listitem>
|
---|
| 239 | <para>converts PDF files to PBM, PGM and PPM formats.</para>
|
---|
| 240 | <indexterm zone="xpdf pdftoppm">
|
---|
| 241 | <primary sortas="b-pdftoppm">pdftoppm</primary>
|
---|
| 242 | </indexterm>
|
---|
| 243 | </listitem>
|
---|
| 244 | </varlistentry>
|
---|
| 245 |
|
---|
| 246 | <varlistentry id="pdftops">
|
---|
| 247 | <term><command>pdftops</command></term>
|
---|
| 248 | <listitem>
|
---|
| 249 | <para> converts PDF files to Postscript format.</para>
|
---|
| 250 | <indexterm zone="xpdf pdftops">
|
---|
| 251 | <primary sortas="b-pdftops">pdftops</primary>
|
---|
| 252 | </indexterm>
|
---|
| 253 | </listitem>
|
---|
| 254 | </varlistentry>
|
---|
| 255 |
|
---|
| 256 | <varlistentry id="pdftotext">
|
---|
| 257 | <term><command>pdftotext</command></term>
|
---|
| 258 | <listitem>
|
---|
| 259 | <para>parses ASCII text from PDF files.</para>
|
---|
| 260 | <indexterm zone="xpdf pdftotext">
|
---|
| 261 | <primary sortas="b-pdftotext">pdftotext</primary>
|
---|
| 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 |
|
---|
| 266 | <varlistentry id="xpdf-prog">
|
---|
| 267 | <term><command>xpdf</command></term>
|
---|
| 268 | <listitem>
|
---|
| 269 | <para>displays files in PDF format.</para>
|
---|
| 270 | <indexterm zone="xpdf xpdf-prog">
|
---|
| 271 | <primary sortas="b-xpdf">xpdf</primary>
|
---|
| 272 | </indexterm>
|
---|
| 273 | </listitem>
|
---|
| 274 | </varlistentry>
|
---|
| 275 |
|
---|
| 276 | </variablelist>
|
---|
| 277 |
|
---|
| 278 | </sect2>
|
---|
[5fd03d2] | 279 |
|
---|
| 280 | </sect1>
|
---|