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