2005-04-04 04:52:42 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
2004-06-14 13:25:53 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
2004-06-29 06:09:39 +08:00
|
|
|
|
2004-11-20 19:20:36 +08:00
|
|
|
<!ENTITY xpdf-download-http "http://gd.tuwien.ac.at/publishing/xpdf/xpdf-3.00.tar.gz">
|
|
|
|
<!ENTITY xpdf-download-ftp "ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.00.tar.gz">
|
2005-02-16 12:09:14 +08:00
|
|
|
<!ENTITY xpdf-md5sum "95294cef3031dd68e65f331e8750b2c2">
|
2004-12-19 03:56:41 +08:00
|
|
|
<!ENTITY xpdf-size "534 KB">
|
2005-04-18 23:32:55 +08:00
|
|
|
<!ENTITY xpdf-buildsize "31.7 MB">
|
|
|
|
<!ENTITY xpdf-time "0.32 SBU">
|
2004-06-14 13:25:53 +08:00
|
|
|
]>
|
|
|
|
|
2003-10-04 16:58:56 +08:00
|
|
|
<sect1 id="xpdf" xreflabel="Xpdf-&xpdf-version;">
|
2004-08-10 12:23:09 +08:00
|
|
|
<sect1info>
|
2004-08-10 12:25:57 +08:00
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
2004-08-10 12:23:09 +08:00
|
|
|
</sect1info>
|
2004-05-07 11:24:31 +08:00
|
|
|
<?dbhtml filename="xpdf.html"?>
|
2004-12-19 03:56:41 +08:00
|
|
|
<title><application>Xpdf</application>-&xpdf-version;</title>
|
2005-04-18 23:32:55 +08:00
|
|
|
<indexterm zone="xpdf">
|
|
|
|
<primary sortas="a-Xpdf">Xpdf</primary></indexterm>
|
2003-10-04 16:58:56 +08:00
|
|
|
|
2004-06-14 13:25:53 +08:00
|
|
|
<sect2>
|
|
|
|
<title>Introduction to <application>Xpdf</application></title>
|
|
|
|
|
|
|
|
<para><application>Xpdf</application> is a viewer for Adobe's free Portable
|
|
|
|
Document Format (<acronym>PDF</acronym>) which is both fast and small and
|
|
|
|
comes with some useful command-line utilities.</para>
|
|
|
|
|
|
|
|
<sect3><title>Package information</title>
|
|
|
|
<itemizedlist spacing='compact'>
|
|
|
|
<listitem><para>Download (HTTP): <ulink
|
|
|
|
url="&xpdf-download-http;"/></para></listitem>
|
|
|
|
<listitem><para>Download (FTP): <ulink
|
|
|
|
url="&xpdf-download-ftp;"/></para></listitem>
|
2004-12-19 03:56:41 +08:00
|
|
|
<listitem><para>Download MD5 sum: &xpdf-md5sum;</para></listitem>
|
2004-06-14 13:25:53 +08:00
|
|
|
<listitem><para>Download size: &xpdf-size;</para></listitem>
|
2004-11-20 19:20:36 +08:00
|
|
|
<listitem><para>Estimated disk space required:
|
2004-06-14 13:25:53 +08:00
|
|
|
&xpdf-buildsize;</para></listitem>
|
|
|
|
<listitem><para>Estimated build time:
|
|
|
|
&xpdf-time;</para></listitem></itemizedlist>
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
<sect3><title>Additional downloads</title>
|
|
|
|
<itemizedlist spacing='compact'>
|
2004-12-19 03:56:41 +08:00
|
|
|
<listitem><para>Required patch: <ulink
|
2005-02-17 12:58:42 +08:00
|
|
|
url="ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.00pl1.patch"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem><para>Required patch: <ulink
|
|
|
|
url="ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.00pl2.patch"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem><para>Required patch: <ulink
|
2004-12-19 03:56:41 +08:00
|
|
|
url="ftp://ftp.foolabs.com/pub/xpdf/xpdf-&xpdf-version;.patch"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem><para>Required patch: <ulink
|
|
|
|
url="&patch-root;/xpdf-&xpdf-version;-freetype_2.1.7_hack-2.patch"/></para>
|
|
|
|
</listitem>
|
2004-06-14 13:25:53 +08:00
|
|
|
</itemizedlist></sect3>
|
2004-06-25 06:02:07 +08:00
|
|
|
|
2004-06-14 13:25:53 +08:00
|
|
|
<sect3><title><application>Xpdf</application> dependencies</title>
|
|
|
|
<sect4><title>Required</title>
|
2004-12-19 03:56:41 +08:00
|
|
|
<para><xref linkend="lesstif"/></para>
|
|
|
|
</sect4>
|
|
|
|
|
2004-06-14 13:25:53 +08:00
|
|
|
<sect4><title>Optional</title>
|
2004-11-20 19:20:36 +08:00
|
|
|
<para><xref linkend="gs"/> or <xref linkend="espgs"/> (just the fonts),
|
2004-08-27 01:37:50 +08:00
|
|
|
<ulink
|
2005-01-13 14:13:29 +08:00
|
|
|
url="http://gd.tuwien.ac.at/visual/ibiblio/libs/graphics/t1lib-5.0.2.tar.gz">
|
|
|
|
t1lib</ulink>
|
2004-08-27 01:37:50 +08:00
|
|
|
and <ulink
|
|
|
|
url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>
|
2004-06-14 13:25:53 +08:00
|
|
|
</para></sect4>
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Installation of <application>Xpdf</application></title>
|
|
|
|
|
2005-02-16 12:09:14 +08:00
|
|
|
<para>Install <application>Xpdf</application> by running the following
|
|
|
|
commands:</para>
|
2004-06-14 13:25:53 +08:00
|
|
|
|
2005-02-17 12:58:42 +08:00
|
|
|
<screen><userinput><command>patch -d xpdf -Np0 -i ../../xpdf-3.00pl1.patch &&
|
|
|
|
patch -d xpdf -Np0 -i ../../xpdf-3.00pl2.patch &&
|
|
|
|
patch -d xpdf -Np0 -i ../../xpdf-&xpdf-version;.patch &&
|
2004-12-19 03:56:41 +08:00
|
|
|
patch -Np1 -i ../xpdf-&xpdf-version;-freetype_2.1.7_hack-2.patch &&
|
2004-06-14 13:25:53 +08:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc \
|
|
|
|
--with-freetype2-includes=/usr/include/freetype2 &&
|
2005-04-18 23:32:55 +08:00
|
|
|
make</command></userinput></screen>
|
|
|
|
|
|
|
|
<para>Now, as the root user:</para>
|
|
|
|
|
|
|
|
<screen><userinput role='root'><command>make install</command></userinput></screen>
|
2004-06-14 13:25:53 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Installation command explanations</title>
|
|
|
|
|
|
|
|
<para><option>--enable-a4-paper</option>: This switch must be
|
|
|
|
added to set <acronym>DIN</acronym> A4 as the standard paper format.</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Configuring <application>Xpdf</application></title>
|
|
|
|
|
2005-04-18 23:32:55 +08:00
|
|
|
<sect3 id="xpdf-config"><title>Config files</title>
|
|
|
|
<para><filename>/etc/xpdfrc</filename> and
|
|
|
|
<filename>~/.xpdfrc</filename></para>
|
|
|
|
<indexterm zone="xpdf xpdf-config">
|
|
|
|
<primary sortas="e-AA.xpdfrc">~/.xpdfrc</primary></indexterm>
|
|
|
|
<indexterm zone="xpdf xpdf-config">
|
|
|
|
<primary sortas="e-etc-xpdfrc">/etc/xpdfrc</primary></indexterm>
|
|
|
|
</sect3>
|
2004-06-14 13:25:53 +08:00
|
|
|
|
|
|
|
<sect3><title>Configuration Information</title>
|
|
|
|
|
2004-08-27 01:37:50 +08:00
|
|
|
<para>In the <filename class='directory'>/etc</filename> directory you will
|
|
|
|
find a sample <filename>xpdfrc</filename> that can be either copied to
|
2004-06-14 13:25:53 +08:00
|
|
|
<filename>~/.xpdfrc</filename> or taken as an example to write your own
|
2005-04-18 23:32:55 +08:00
|
|
|
configuration file. Below you'll find a condensed version of the file you
|
|
|
|
may wish to build from.</para>
|
2004-06-14 13:25:53 +08:00
|
|
|
|
|
|
|
<screen><userinput># Example .xpdfrc
|
2005-01-13 14:13:29 +08:00
|
|
|
displayFontT1 Times-Roman /usr/share/ghostscript/fonts/n021003l.pfb
|
|
|
|
displayFontT1 Times-Italic /usr/share/ghostscript/fonts/n021023l.pfb
|
|
|
|
displayFontT1 Times-Bold /usr/share/ghostscript/fonts/n021004l.pfb
|
|
|
|
displayFontT1 Times-BoldItalic /usr/share/ghostscript/fonts/n021024l.pfb
|
|
|
|
displayFontT1 Helvetica /usr/share/ghostscript/fonts/n019003l.pfb
|
|
|
|
displayFontT1 Helvetica-Oblique /usr/share/ghostscript/fonts/n019023l.pfb
|
|
|
|
displayFontT1 Helvetica-Bold /usr/share/ghostscript/fonts/n019004l.pfb
|
|
|
|
displayFontT1 Helvetica-BoldOblique /usr/share/ghostscript/fonts/n019024l.pfb
|
|
|
|
displayFontT1 Courier /usr/share/ghostscript/fonts/n022003l.pfb
|
|
|
|
displayFontT1 Courier-Oblique /usr/share/ghostscript/fonts/n022023l.pfb
|
|
|
|
displayFontT1 Courier-Bold /usr/share/ghostscript/fonts/n022004l.pfb
|
|
|
|
displayFontT1 Courier-BoldOblique /usr/share/ghostscript/fonts/n022024l.pfb
|
|
|
|
displayFontT1 Symbol /usr/share/ghostscript/fonts/s050000l.pfb
|
|
|
|
displayFontT1 ZapfDingbats /usr/share/ghostscript/fonts/d050000l.pfb
|
2004-06-14 13:25:53 +08:00
|
|
|
|
|
|
|
fontDir /usr/X11R6/lib/X11/fonts/TTF
|
|
|
|
|
|
|
|
psFile "|lpr"
|
|
|
|
psPaperSize letter
|
2004-11-20 19:20:36 +08:00
|
|
|
#psPaperSize A4
|
2004-06-14 13:25:53 +08:00
|
|
|
textEOL unix
|
|
|
|
|
|
|
|
enableT1lib yes
|
|
|
|
enableFreeType yes
|
|
|
|
antialias yes
|
|
|
|
|
|
|
|
urlCommand "links -g %s"</userinput></screen>
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2>
|
|
|
|
<title>Contents</title>
|
|
|
|
|
2005-04-18 23:32:55 +08:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>pdffonts, pdfimages, pdfinfo, pdftoppm, pdftops, pdftotext and xpdf</seg>
|
|
|
|
<seg>None</seg>
|
|
|
|
<seg>None</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
|
|
|
|
<varlistentry id="pdffonts">
|
|
|
|
<term><command>pdffonts</command></term>
|
|
|
|
<listitem><para>lists the fonts used in a <acronym>PDF</acronym> file along
|
|
|
|
with various information for each font.</para>
|
|
|
|
<indexterm zone="xpdf pdffonts">
|
|
|
|
<primary sortas="b-pdffonts">pdffonts</primary>
|
|
|
|
</indexterm></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pdfimages">
|
|
|
|
<term><command>pdfimages</command></term>
|
|
|
|
<listitem><para>saves images from a <acronym>PDF</acronym> file as
|
|
|
|
<acronym>PPM</acronym>, <acronym>PBM</acronym>, or <acronym>JPEG</acronym>
|
|
|
|
files.</para>
|
|
|
|
<indexterm zone="xpdf pdfimages">
|
|
|
|
<primary sortas="b-pdfimages">pdfimages</primary>
|
|
|
|
</indexterm></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pdfinfo">
|
|
|
|
<term><command>pdfinfo</command></term>
|
|
|
|
<listitem><para>prints the contents of the 'Info' dictionary (plus some
|
|
|
|
other useful information) from a <acronym>PDF</acronym> file.</para>
|
|
|
|
<indexterm zone="xpdf pdfinfo">
|
|
|
|
<primary sortas="b-pdfinfo">pdfinfo</primary>
|
|
|
|
</indexterm></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pdftoppm">
|
|
|
|
<term><command>pdftoppm</command></term>
|
|
|
|
<listitem><para>converts <acronym>PDF</acronym> files to
|
|
|
|
<acronym>PBM</acronym>, <acronym>PGM</acronym> and <acronym>PPM</acronym>
|
|
|
|
formats.</para>
|
|
|
|
<indexterm zone="xpdf pdftoppm">
|
|
|
|
<primary sortas="b-pdftoppm">pdftoppm</primary>
|
|
|
|
</indexterm></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pdftops">
|
|
|
|
<term><command>pdftops</command></term>
|
|
|
|
<listitem><para> converts <acronym>PDF</acronym> files to Postscript
|
|
|
|
format.</para>
|
|
|
|
<indexterm zone="xpdf pdftops">
|
|
|
|
<primary sortas="b-pdftops">pdftops</primary>
|
|
|
|
</indexterm></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="pdftotext">
|
|
|
|
<term><command>pdftotext</command></term>
|
|
|
|
<listitem><para>parses <acronym>ASCII</acronym> text from
|
|
|
|
<acronym>PDF</acronym> files.</para>
|
|
|
|
<indexterm zone="xpdf pdftotext">
|
|
|
|
<primary sortas="b-pdftotext">pdftotext</primary>
|
|
|
|
</indexterm></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="xpdf-prog">
|
|
|
|
<term><command>xpdf</command></term>
|
|
|
|
<listitem><para>displays files in <acronym>PDF</acronym> format.</para>
|
|
|
|
<indexterm zone="xpdf xpdf-prog">
|
|
|
|
<primary sortas="b-xpdf">xpdf</primary>
|
|
|
|
</indexterm></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2004-06-14 13:25:53 +08:00
|
|
|
|
|
|
|
</sect2>
|
2003-10-04 16:58:56 +08:00
|
|
|
|
|
|
|
</sect1>
|