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