[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">
|
---|
| 9 | <!ENTITY xpdf-buildsize "21 MB">
|
---|
| 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>
|
---|
| 52 | <para>
|
---|
| 53 | <ulink url="http://gd.tuwien.ac.at/visual/ibiblio/libs/graphics/t1lib-5.0.2.tar.gz">t1lib</ulink> and
|
---|
| 54 | <xref linkend="gs"/> or <xref linkend="espgs"/>
|
---|
| 55 | </para></sect4>
|
---|
| 56 | </sect3>
|
---|
| 57 |
|
---|
| 58 | </sect2>
|
---|
| 59 |
|
---|
| 60 | <sect2>
|
---|
| 61 | <title>Installation of <application>Xpdf</application></title>
|
---|
| 62 |
|
---|
| 63 | <para>Install <application>Xpdf</application> by running the following commands:
|
---|
| 64 | </para>
|
---|
| 65 |
|
---|
[4f6275fd] | 66 | <screen><userinput><command>patch -Np1 -i ../xpdf-&xpdf-version;-freetype_2.1.7_hack-1.patch &&
|
---|
[959f944] | 67 | ./configure --prefix=/usr --sysconfdir=/etc \
|
---|
| 68 | --with-freetype2-includes=/usr/include/freetype2 &&
|
---|
| 69 | make &&
|
---|
| 70 | make install</command></userinput></screen>
|
---|
| 71 |
|
---|
| 72 | </sect2>
|
---|
| 73 |
|
---|
| 74 | <sect2>
|
---|
| 75 | <title>Installation command explanations</title>
|
---|
| 76 |
|
---|
| 77 | <para><option>--enable-a4-paper</option>: This switch must be
|
---|
| 78 | added to set <acronym>DIN</acronym> A4 as the standard paper format.</para>
|
---|
| 79 |
|
---|
| 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2>
|
---|
| 83 | <title>Configuring <application>Xpdf</application></title>
|
---|
| 84 |
|
---|
| 85 | <sect3><title>Config files</title>
|
---|
| 86 | <para><filename>/etc/xpdfrc</filename>,
|
---|
| 87 | <filename>~/.xpdfrc</filename></para></sect3>
|
---|
| 88 |
|
---|
| 89 | <sect3><title>Configuration Information</title>
|
---|
| 90 |
|
---|
| 91 | <para>In the <filename>etc</filename> directory you will find a sample
|
---|
| 92 | <filename>xpdfrc</filename> that can be either copied to
|
---|
| 93 | <filename>~/.xpdfrc</filename> or taken as an example to write your own
|
---|
| 94 | configuration file.</para>
|
---|
| 95 |
|
---|
| 96 | <screen><userinput># Example .xpdfrc
|
---|
| 97 | displayFontT1 Times-Roman /usr/share/ghostscript/fonts/n021003l.pfb
|
---|
| 98 | displayFontT1 Times-Italic /usr/share/ghostscript/fonts/n021023l.pfb
|
---|
| 99 | displayFontT1 Times-Bold /usr/share/ghostscript/fonts/n021004l.pfb
|
---|
| 100 | displayFontT1 Times-BoldItalic /usr/share/ghostscript/fonts/n021024l.pfb
|
---|
| 101 | displayFontT1 Helvetica /usr/share/ghostscript/fonts/n019003l.pfb
|
---|
| 102 | displayFontT1 Helvetica-Oblique /usr/share/ghostscript/fonts/n019023l.pfb
|
---|
| 103 | displayFontT1 Helvetica-Bold /usr/share/ghostscript/fonts/n019004l.pfb
|
---|
| 104 | displayFontT1 Helvetica-BoldOblique /usr/share/ghostscript/fonts/n019024l.pfb
|
---|
| 105 | displayFontT1 Courier /usr/share/ghostscript/fonts/n022003l.pfb
|
---|
| 106 | displayFontT1 Courier-Oblique /usr/share/ghostscript/fonts/n022023l.pfb
|
---|
| 107 | displayFontT1 Courier-Bold /usr/share/ghostscript/fonts/n022004l.pfb
|
---|
| 108 | displayFontT1 Courier-BoldOblique /usr/share/ghostscript/fonts/n022024l.pfb
|
---|
| 109 | displayFontT1 Symbol /usr/share/ghostscript/fonts/s050000l.pfb
|
---|
| 110 | displayFontT1 ZapfDingbats /usr/share/ghostscript/fonts/d050000l.pfb
|
---|
| 111 |
|
---|
| 112 | fontDir /usr/X11R6/lib/X11/fonts/TTF
|
---|
| 113 |
|
---|
| 114 | psFile "|lpr"
|
---|
| 115 | psPaperSize letter
|
---|
| 116 | textEOL unix
|
---|
| 117 |
|
---|
| 118 | enableT1lib yes
|
---|
| 119 | enableFreeType yes
|
---|
| 120 | antialias yes
|
---|
| 121 |
|
---|
| 122 | urlCommand "links -g %s"</userinput></screen>
|
---|
| 123 | </sect3>
|
---|
| 124 |
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
| 127 | <sect2>
|
---|
| 128 | <title>Contents</title>
|
---|
| 129 |
|
---|
| 130 | <para>The <application>Xpdf</application> package contains
|
---|
| 131 | <command>xpdf</command>, <command>pdftops</command>,
|
---|
| 132 | <command>pdftotext</command>, <command>pdftoppm</command>,
|
---|
| 133 | <command>pdffonts</command>, <command>pdfimages</command> and
|
---|
| 134 | <command>pdfinfo</command>.</para>
|
---|
| 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | <sect2><title>Description</title>
|
---|
| 138 |
|
---|
| 139 | <sect3><title>xpdf</title>
|
---|
| 140 | <para><command>xpdf</command> displays files in <acronym>PDF</acronym>
|
---|
| 141 | format.</para></sect3>
|
---|
| 142 |
|
---|
| 143 | <sect3><title>pdftops</title>
|
---|
| 144 | <para><command>pdftops</command> converts <acronym>PDF</acronym> files to
|
---|
| 145 | <acronym>PS</acronym> format.</para></sect3>
|
---|
| 146 |
|
---|
| 147 | <sect3><title>pdftotext</title>
|
---|
| 148 | <para><command>pdftotext</command> parses <acronym>ASCII</acronym> text from
|
---|
| 149 | <acronym>PDF</acronym> files.</para></sect3>
|
---|
| 150 |
|
---|
| 151 | <sect3><title>pdftoppm</title>
|
---|
| 152 | <para><command>pdftoppm</command> converts <acronym>PDF</acronym> files to
|
---|
| 153 | <acronym>PBM</acronym>, <acronym>PGM</acronym>, <acronym>PPM</acronym>
|
---|
| 154 | formats.</para></sect3>
|
---|
| 155 |
|
---|
| 156 | <sect3><title>pdffonts</title>
|
---|
| 157 | <para><command>pdffonts</command> lists the fonts used in a
|
---|
| 158 | <acronym>PDF</acronym> file along with various information for each
|
---|
| 159 | font.</para></sect3>
|
---|
| 160 |
|
---|
| 161 | <sect3><title>pdfimages</title>
|
---|
| 162 | <para><command>pdfimages</command> saves images from a
|
---|
| 163 | <acronym>PDF</acronym> file as <acronym>PPM</acronym>,
|
---|
| 164 | <acronym>PBM</acronym>, or <acronym>JPEG</acronym> files.</para></sect3>
|
---|
| 165 |
|
---|
| 166 | <sect3><title>pdfinfo</title>
|
---|
| 167 | <para><command>pdfinfo</command> prints the contents of the 'Info'
|
---|
| 168 | dictionary (plus some other useful information) from a
|
---|
| 169 | <acronym>PDF</acronym> file.</para></sect3>
|
---|
| 170 |
|
---|
| 171 | </sect2>
|
---|
[5fd03d2] | 172 |
|
---|
| 173 | </sect1>
|
---|