glfs/pst/ps/xpdf.xml

245 lines
8.4 KiB
XML
Raw Normal View History

<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!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">
<!ENTITY xpdf-md5sum "95294cef3031dd68e65f331e8750b2c2">
<!ENTITY xpdf-size "534 KB">
<!ENTITY xpdf-buildsize "31.7 MB">
<!ENTITY xpdf-time "0.32 SBU">
]>
<sect1 id="xpdf" xreflabel="Xpdf-&xpdf-version;">
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<?dbhtml filename="xpdf.html"?>
<title><application>Xpdf</application>-&xpdf-version;</title>
<indexterm zone="xpdf">
<primary sortas="a-Xpdf">Xpdf</primary></indexterm>
<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>
<listitem><para>Download MD5 sum: &xpdf-md5sum;</para></listitem>
<listitem><para>Download size: &xpdf-size;</para></listitem>
<listitem><para>Estimated disk space required:
&xpdf-buildsize;</para></listitem>
<listitem><para>Estimated build time:
&xpdf-time;</para></listitem></itemizedlist>
</sect3>
<sect3><title>Additional downloads</title>
<itemizedlist spacing='compact'>
<listitem><para>Required patch: <ulink
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
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>
</itemizedlist></sect3>
<sect3><title><application>Xpdf</application> dependencies</title>
<sect4><title>Required</title>
<para><xref linkend="lesstif"/></para>
</sect4>
<sect4><title>Optional</title>
<para><xref linkend="gs"/> or <xref linkend="espgs"/> (just the fonts),
<ulink
url="http://gd.tuwien.ac.at/visual/ibiblio/libs/graphics/t1lib-5.0.2.tar.gz">
t1lib</ulink>
and <ulink
url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>
</para></sect4>
</sect3>
</sect2>
<sect2>
<title>Installation of <application>Xpdf</application></title>
<para>Install <application>Xpdf</application> by running the following
commands:</para>
<screen><userinput><command>patch -d xpdf -Np0 -i ../../xpdf-3.00pl1.patch &amp;&amp;
patch -d xpdf -Np0 -i ../../xpdf-3.00pl2.patch &amp;&amp;
patch -d xpdf -Np0 -i ../../xpdf-&xpdf-version;.patch &amp;&amp;
patch -Np1 -i ../xpdf-&xpdf-version;-freetype_2.1.7_hack-2.patch &amp;&amp;
./configure --prefix=/usr --sysconfdir=/etc \
--with-freetype2-includes=/usr/include/freetype2 &amp;&amp;
make</command></userinput></screen>
<para>Now, as the root user:</para>
<screen><userinput role='root'><command>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 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>
<sect3><title>Configuration Information</title>
<para>In the <filename class='directory'>/etc</filename> directory you will
find a sample <filename>xpdfrc</filename> that can be either copied to
<filename>~/.xpdfrc</filename> or taken as an example to write your own
configuration file. Below you'll find a condensed version of the file you
may wish to build from.</para>
<screen><userinput># Example .xpdfrc
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
fontDir /usr/X11R6/lib/X11/fonts/TTF
psFile "|lpr"
psPaperSize letter
#psPaperSize A4
textEOL unix
enableT1lib yes
enableFreeType yes
antialias yes
urlCommand "links -g %s"</userinput></screen>
</sect3>
</sect2>
<sect2>
<title>Contents</title>
<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>
</sect2>
</sect1>