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">
|
2004-08-27 01:37:50 +08:00
|
|
|
<!ENTITY xpdf-buildsize "32 MB">
|
2004-12-19 03:56:41 +08:00
|
|
|
<!ENTITY xpdf-time "0.36 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>
|
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 &&
|
|
|
|
make &&
|
|
|
|
make install</command></userinput></screen>
|
|
|
|
|
|
|
|
</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>
|
|
|
|
|
|
|
|
<sect3><title>Config files</title>
|
|
|
|
<para><filename>/etc/xpdfrc</filename>,
|
|
|
|
<filename>~/.xpdfrc</filename></para></sect3>
|
|
|
|
|
|
|
|
<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
|
|
|
|
configuration file.</para>
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
<para>The <application>Xpdf</application> package contains
|
|
|
|
<command>xpdf</command>, <command>pdftops</command>,
|
|
|
|
<command>pdftotext</command>, <command>pdftoppm</command>,
|
|
|
|
<command>pdffonts</command>, <command>pdfimages</command> and
|
|
|
|
<command>pdfinfo</command>.</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2><title>Description</title>
|
|
|
|
|
|
|
|
<sect3><title>xpdf</title>
|
|
|
|
<para><command>xpdf</command> displays files in <acronym>PDF</acronym>
|
|
|
|
format.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>pdftops</title>
|
|
|
|
<para><command>pdftops</command> converts <acronym>PDF</acronym> files to
|
|
|
|
<acronym>PS</acronym> format.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>pdftotext</title>
|
|
|
|
<para><command>pdftotext</command> parses <acronym>ASCII</acronym> text from
|
|
|
|
<acronym>PDF</acronym> files.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>pdftoppm</title>
|
|
|
|
<para><command>pdftoppm</command> converts <acronym>PDF</acronym> files to
|
|
|
|
<acronym>PBM</acronym>, <acronym>PGM</acronym>, <acronym>PPM</acronym>
|
|
|
|
formats.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>pdffonts</title>
|
|
|
|
<para><command>pdffonts</command> lists the fonts used in a
|
|
|
|
<acronym>PDF</acronym> file along with various information for each
|
|
|
|
font.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>pdfimages</title>
|
|
|
|
<para><command>pdfimages</command> saves images from a
|
|
|
|
<acronym>PDF</acronym> file as <acronym>PPM</acronym>,
|
|
|
|
<acronym>PBM</acronym>, or <acronym>JPEG</acronym> files.</para></sect3>
|
|
|
|
|
|
|
|
<sect3><title>pdfinfo</title>
|
|
|
|
<para><command>pdfinfo</command> prints the contents of the 'Info'
|
|
|
|
dictionary (plus some other useful information) from a
|
|
|
|
<acronym>PDF</acronym> file.</para></sect3>
|
|
|
|
|
|
|
|
</sect2>
|
2003-10-04 16:58:56 +08:00
|
|
|
|
|
|
|
</sect1>
|