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