glfs/archive/xpdf.xml
Pierre Labastie 3f2db3a638 Remove sect1info tags
They only contain a date tag that is nowhere used.
2022-11-29 08:58:07 +01:00

271 lines
9.0 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY xpdf-download-http "http://gd.tuwien.ac.at/publishing/xpdf/xpdf-&xpdf-version;.tar.gz">
<!ENTITY xpdf-download-ftp "ftp://ftp.foolabs.com/pub/xpdf/xpdf-&xpdf-version;.tar.gz">
<!ENTITY xpdf-md5sum "599dc4cc65a07ee868cf92a667a913d2">
<!ENTITY xpdf-size "674 KB">
<!ENTITY xpdf-buildsize "46 MB">
<!ENTITY xpdf-time "0.5 SBU">
]>
<sect1 id="xpdf" xreflabel="Xpdf-&xpdf-version;">
<?dbhtml filename="xpdf.html"?>
<title>Xpdf-&xpdf-version;</title>
<indexterm zone="xpdf">
<primary sortas="a-Xpdf">Xpdf</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to Xpdf</title>
<para><application>Xpdf</application> is a viewer for Adobe's free
Portable Document Format (PDF) which is both fast and small and
comes with some useful command-line utilities.</para>
&lfs65_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<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>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing='compact'>
<listitem>
<para>Required patch: <ulink
url="&patch-root;/xpdf-&xpdf-version;-consolidated_pl5-1.patch"/></para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Xpdf Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required"><xref linkend="lesstif"/></para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional"><xref linkend="gs"/><!-- or <xref linkend="espgs"/> -->
(just the fonts),
<ulink url="http://www.sfr-fresh.com/linux/misc/t1lib">t1lib</ulink>, and
<ulink url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink></para>
<para condition="html" role="usernotes">User Notes:
<ulink url="&blfs-wiki;/Xpdf"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of Xpdf</title>
<para>Install <application>Xpdf</application> by running the following
commands:</para>
<screen><userinput>patch -Np1 -i ../xpdf-&xpdf-version;-consolidated_pl5-1.patch &amp;&amp;
./configure --prefix=/usr \
--sysconfdir=/etc \
--with-freetype2-includes=/usr/include/freetype2 \
--enable-opi \
--enable-multithreaded \
--enable-wordlist &amp;&amp;
make</userinput></screen>
<para>This package does not come with a test suite.</para>
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<para><option>--enable-a4-paper</option>: This switch must be
added to set DIN A4 as the standard paper format.</para>
</sect2>
<sect2 role="configuration">
<title>Configuring Xpdf</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><literal># 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/share/fonts/X11-TTF
psFile "|lpr"
psPaperSize letter
#psPaperSize A4
textEOL unix
enableT1lib yes
enableFreeType yes
antialias yes
urlCommand "links -g %s"</literal></screen>
</sect3>
</sect2>
<sect2 role="content" id="xpdf-content"
xreflabel="See the Xpdf-&xpdf-version; program descriptions">
<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"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="pdffonts">
<term><command>pdffonts</command></term>
<listitem>
<para>lists the fonts used in a PDF 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 PDF file as PPM, PBM, or JPEG 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 PDF 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 PDF files to PBM, PGM and PPM 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 PDF 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 ASCII text from PDF 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 PDF format.</para>
<indexterm zone="xpdf xpdf-prog">
<primary sortas="b-xpdf">xpdf</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>