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