[959f944] | 1 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 2 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 4 | %general-entities;
|
---|
[4f6275fd] | 5 |
|
---|
[959f944] | 6 | <!ENTITY xpdf-download-http "http://gd.tuwien.ac.at/publishing/xpdf/xpdf-&xpdf-version;.tar.gz">
|
---|
| 7 | <!ENTITY xpdf-download-ftp "ftp://ftp.foolabs.com/pub/xpdf/xpdf-&xpdf-version;.tar.gz">
|
---|
| 8 | <!ENTITY xpdf-size "490 KB">
|
---|
[c125cc9d] | 9 | <!ENTITY xpdf-buildsize "32 MB">
|
---|
[959f944] | 10 | <!ENTITY xpdf-time "0.41 SBU">
|
---|
| 11 | ]>
|
---|
| 12 |
|
---|
[5fd03d2] | 13 | <sect1 id="xpdf" xreflabel="Xpdf-&xpdf-version;">
|
---|
[a0f03b0] | 14 | <sect1info>
|
---|
[5cd0959d] | 15 | <othername>$LastChangedBy$</othername>
|
---|
| 16 | <date>$Date$</date>
|
---|
[a0f03b0] | 17 | </sect1info>
|
---|
[dd3f20f0] | 18 | <?dbhtml filename="xpdf.html"?>
|
---|
[5fd03d2] | 19 | <title>Xpdf-&xpdf-version;</title>
|
---|
| 20 |
|
---|
[959f944] | 21 | <sect2>
|
---|
| 22 | <title>Introduction to <application>Xpdf</application></title>
|
---|
| 23 |
|
---|
| 24 | <para><application>Xpdf</application> is a viewer for Adobe's free Portable
|
---|
| 25 | Document Format (<acronym>PDF</acronym>) which is both fast and small and
|
---|
| 26 | comes with some useful command-line utilities.</para>
|
---|
| 27 |
|
---|
| 28 | <sect3><title>Package information</title>
|
---|
| 29 | <itemizedlist spacing='compact'>
|
---|
| 30 | <listitem><para>Download (HTTP): <ulink
|
---|
| 31 | url="&xpdf-download-http;"/></para></listitem>
|
---|
| 32 | <listitem><para>Download (FTP): <ulink
|
---|
| 33 | url="&xpdf-download-ftp;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download size: &xpdf-size;</para></listitem>
|
---|
| 35 | <listitem><para>Estimated Disk space required:
|
---|
| 36 | &xpdf-buildsize;</para></listitem>
|
---|
| 37 | <listitem><para>Estimated build time:
|
---|
| 38 | &xpdf-time;</para></listitem></itemizedlist>
|
---|
| 39 | </sect3>
|
---|
| 40 |
|
---|
| 41 | <sect3><title>Additional downloads</title>
|
---|
| 42 | <itemizedlist spacing='compact'>
|
---|
| 43 | <listitem><para>Required Patch: <ulink
|
---|
[4f6275fd] | 44 | url="&patch-root;/xpdf-&xpdf-version;-freetype_2.1.7_hack-1.patch"/></para></listitem>
|
---|
[959f944] | 45 | </itemizedlist></sect3>
|
---|
[b1623c2] | 46 |
|
---|
[959f944] | 47 | <sect3><title><application>Xpdf</application> dependencies</title>
|
---|
| 48 | <sect4><title>Required</title>
|
---|
| 49 | <para><xref linkend="lesstif"/>
|
---|
| 50 | </para></sect4>
|
---|
| 51 | <sect4><title>Optional</title>
|
---|
[c125cc9d] | 52 | <para><xref linkend="gs"/> or <xref linkend="espgs"/>,
|
---|
| 53 | <ulink
|
---|
| 54 | url="http://gd.tuwien.ac.at/visual/ibiblio/libs/graphics/t1lib-5.0.2.tar.gz">t1lib</ulink>
|
---|
| 55 | and <ulink
|
---|
| 56 | url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>
|
---|
[959f944] | 57 | </para></sect4>
|
---|
| 58 | </sect3>
|
---|
| 59 |
|
---|
| 60 | </sect2>
|
---|
| 61 |
|
---|
| 62 | <sect2>
|
---|
| 63 | <title>Installation of <application>Xpdf</application></title>
|
---|
| 64 |
|
---|
| 65 | <para>Install <application>Xpdf</application> by running the following commands:
|
---|
| 66 | </para>
|
---|
| 67 |
|
---|
[4f6275fd] | 68 | <screen><userinput><command>patch -Np1 -i ../xpdf-&xpdf-version;-freetype_2.1.7_hack-1.patch &&
|
---|
[959f944] | 69 | ./configure --prefix=/usr --sysconfdir=/etc \
|
---|
| 70 | --with-freetype2-includes=/usr/include/freetype2 &&
|
---|
| 71 | make &&
|
---|
| 72 | make install</command></userinput></screen>
|
---|
| 73 |
|
---|
| 74 | </sect2>
|
---|
| 75 |
|
---|
| 76 | <sect2>
|
---|
| 77 | <title>Installation command explanations</title>
|
---|
| 78 |
|
---|
| 79 | <para><option>--enable-a4-paper</option>: This switch must be
|
---|
| 80 | added to set <acronym>DIN</acronym> A4 as the standard paper format.</para>
|
---|
| 81 |
|
---|
| 82 | </sect2>
|
---|
| 83 |
|
---|
| 84 | <sect2>
|
---|
| 85 | <title>Configuring <application>Xpdf</application></title>
|
---|
| 86 |
|
---|
| 87 | <sect3><title>Config files</title>
|
---|
| 88 | <para><filename>/etc/xpdfrc</filename>,
|
---|
| 89 | <filename>~/.xpdfrc</filename></para></sect3>
|
---|
| 90 |
|
---|
| 91 | <sect3><title>Configuration Information</title>
|
---|
| 92 |
|
---|
[c125cc9d] | 93 | <para>In the <filename class='directory'>/etc</filename> directory you will
|
---|
| 94 | find a sample <filename>xpdfrc</filename> that can be either copied to
|
---|
[959f944] | 95 | <filename>~/.xpdfrc</filename> or taken as an example to write your own
|
---|
| 96 | configuration file.</para>
|
---|
| 97 |
|
---|
| 98 | <screen><userinput># Example .xpdfrc
|
---|
| 99 | displayFontT1 Times-Roman /usr/share/ghostscript/fonts/n021003l.pfb
|
---|
| 100 | displayFontT1 Times-Italic /usr/share/ghostscript/fonts/n021023l.pfb
|
---|
| 101 | displayFontT1 Times-Bold /usr/share/ghostscript/fonts/n021004l.pfb
|
---|
| 102 | displayFontT1 Times-BoldItalic /usr/share/ghostscript/fonts/n021024l.pfb
|
---|
| 103 | displayFontT1 Helvetica /usr/share/ghostscript/fonts/n019003l.pfb
|
---|
| 104 | displayFontT1 Helvetica-Oblique /usr/share/ghostscript/fonts/n019023l.pfb
|
---|
| 105 | displayFontT1 Helvetica-Bold /usr/share/ghostscript/fonts/n019004l.pfb
|
---|
| 106 | displayFontT1 Helvetica-BoldOblique /usr/share/ghostscript/fonts/n019024l.pfb
|
---|
| 107 | displayFontT1 Courier /usr/share/ghostscript/fonts/n022003l.pfb
|
---|
| 108 | displayFontT1 Courier-Oblique /usr/share/ghostscript/fonts/n022023l.pfb
|
---|
| 109 | displayFontT1 Courier-Bold /usr/share/ghostscript/fonts/n022004l.pfb
|
---|
| 110 | displayFontT1 Courier-BoldOblique /usr/share/ghostscript/fonts/n022024l.pfb
|
---|
| 111 | displayFontT1 Symbol /usr/share/ghostscript/fonts/s050000l.pfb
|
---|
| 112 | displayFontT1 ZapfDingbats /usr/share/ghostscript/fonts/d050000l.pfb
|
---|
| 113 |
|
---|
| 114 | fontDir /usr/X11R6/lib/X11/fonts/TTF
|
---|
| 115 |
|
---|
| 116 | psFile "|lpr"
|
---|
| 117 | psPaperSize letter
|
---|
| 118 | textEOL unix
|
---|
| 119 |
|
---|
| 120 | enableT1lib yes
|
---|
| 121 | enableFreeType yes
|
---|
| 122 | antialias yes
|
---|
| 123 |
|
---|
| 124 | urlCommand "links -g %s"</userinput></screen>
|
---|
| 125 | </sect3>
|
---|
| 126 |
|
---|
| 127 | </sect2>
|
---|
| 128 |
|
---|
| 129 | <sect2>
|
---|
| 130 | <title>Contents</title>
|
---|
| 131 |
|
---|
| 132 | <para>The <application>Xpdf</application> package contains
|
---|
| 133 | <command>xpdf</command>, <command>pdftops</command>,
|
---|
| 134 | <command>pdftotext</command>, <command>pdftoppm</command>,
|
---|
| 135 | <command>pdffonts</command>, <command>pdfimages</command> and
|
---|
| 136 | <command>pdfinfo</command>.</para>
|
---|
| 137 | </sect2>
|
---|
| 138 |
|
---|
| 139 | <sect2><title>Description</title>
|
---|
| 140 |
|
---|
| 141 | <sect3><title>xpdf</title>
|
---|
| 142 | <para><command>xpdf</command> displays files in <acronym>PDF</acronym>
|
---|
| 143 | format.</para></sect3>
|
---|
| 144 |
|
---|
| 145 | <sect3><title>pdftops</title>
|
---|
| 146 | <para><command>pdftops</command> converts <acronym>PDF</acronym> files to
|
---|
| 147 | <acronym>PS</acronym> format.</para></sect3>
|
---|
| 148 |
|
---|
| 149 | <sect3><title>pdftotext</title>
|
---|
| 150 | <para><command>pdftotext</command> parses <acronym>ASCII</acronym> text from
|
---|
| 151 | <acronym>PDF</acronym> files.</para></sect3>
|
---|
| 152 |
|
---|
| 153 | <sect3><title>pdftoppm</title>
|
---|
| 154 | <para><command>pdftoppm</command> converts <acronym>PDF</acronym> files to
|
---|
| 155 | <acronym>PBM</acronym>, <acronym>PGM</acronym>, <acronym>PPM</acronym>
|
---|
| 156 | formats.</para></sect3>
|
---|
| 157 |
|
---|
| 158 | <sect3><title>pdffonts</title>
|
---|
| 159 | <para><command>pdffonts</command> lists the fonts used in a
|
---|
| 160 | <acronym>PDF</acronym> file along with various information for each
|
---|
| 161 | font.</para></sect3>
|
---|
| 162 |
|
---|
| 163 | <sect3><title>pdfimages</title>
|
---|
| 164 | <para><command>pdfimages</command> saves images from a
|
---|
| 165 | <acronym>PDF</acronym> file as <acronym>PPM</acronym>,
|
---|
| 166 | <acronym>PBM</acronym>, or <acronym>JPEG</acronym> files.</para></sect3>
|
---|
| 167 |
|
---|
| 168 | <sect3><title>pdfinfo</title>
|
---|
| 169 | <para><command>pdfinfo</command> prints the contents of the 'Info'
|
---|
| 170 | dictionary (plus some other useful information) from a
|
---|
| 171 | <acronym>PDF</acronym> file.</para></sect3>
|
---|
| 172 |
|
---|
| 173 | </sect2>
|
---|
[5fd03d2] | 174 |
|
---|
| 175 | </sect1>
|
---|