source: pst/ps/xpdf.xml@ 3a02b4f

10.0 10.1 11.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 3a02b4f was 3a02b4f, checked in by Randy McMurchy <randy@…>, 17 years ago

Updated build entities and added indexing tags to the Xpdf instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3757 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 8.4 KB
Line 
1<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
2 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../../general.ent">
4 %general-entities;
5
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">
8 <!ENTITY xpdf-md5sum "95294cef3031dd68e65f331e8750b2c2">
9 <!ENTITY xpdf-size "534 KB">
10 <!ENTITY xpdf-buildsize "31.7 MB">
11 <!ENTITY xpdf-time "0.32 SBU">
12]>
13
14<sect1 id="xpdf" xreflabel="Xpdf-&xpdf-version;">
15<sect1info>
16<othername>$LastChangedBy$</othername>
17<date>$Date$</date>
18</sect1info>
19<?dbhtml filename="xpdf.html"?>
20<title><application>Xpdf</application>-&xpdf-version;</title>
21<indexterm zone="xpdf">
22<primary sortas="a-Xpdf">Xpdf</primary></indexterm>
23
24<sect2>
25<title>Introduction to <application>Xpdf</application></title>
26
27<para><application>Xpdf</application> is a viewer for Adobe's free Portable
28Document Format (<acronym>PDF</acronym>) which is both fast and small and
29comes with some useful command-line utilities.</para>
30
31<sect3><title>Package information</title>
32<itemizedlist spacing='compact'>
33<listitem><para>Download (HTTP): <ulink
34url="&xpdf-download-http;"/></para></listitem>
35<listitem><para>Download (FTP): <ulink
36url="&xpdf-download-ftp;"/></para></listitem>
37<listitem><para>Download MD5 sum: &xpdf-md5sum;</para></listitem>
38<listitem><para>Download size: &xpdf-size;</para></listitem>
39<listitem><para>Estimated disk space required:
40&xpdf-buildsize;</para></listitem>
41<listitem><para>Estimated build time:
42&xpdf-time;</para></listitem></itemizedlist>
43</sect3>
44
45<sect3><title>Additional downloads</title>
46<itemizedlist spacing='compact'>
47<listitem><para>Required patch: <ulink
48url="ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.00pl1.patch"/></para>
49</listitem>
50<listitem><para>Required patch: <ulink
51url="ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.00pl2.patch"/></para>
52</listitem>
53<listitem><para>Required patch: <ulink
54url="ftp://ftp.foolabs.com/pub/xpdf/xpdf-&xpdf-version;.patch"/></para>
55</listitem>
56<listitem><para>Required patch: <ulink
57url="&patch-root;/xpdf-&xpdf-version;-freetype_2.1.7_hack-2.patch"/></para>
58</listitem>
59</itemizedlist></sect3>
60
61<sect3><title><application>Xpdf</application> dependencies</title>
62<sect4><title>Required</title>
63<para><xref linkend="lesstif"/></para>
64</sect4>
65
66<sect4><title>Optional</title>
67<para><xref linkend="gs"/> or <xref linkend="espgs"/> (just the fonts),
68<ulink
69url="http://gd.tuwien.ac.at/visual/ibiblio/libs/graphics/t1lib-5.0.2.tar.gz">
70t1lib</ulink>
71and <ulink
72url="http://packages.debian.org/unstable/source/libpaper">libpaper</ulink>
73</para></sect4>
74</sect3>
75
76</sect2>
77
78<sect2>
79<title>Installation of <application>Xpdf</application></title>
80
81<para>Install <application>Xpdf</application> by running the following
82commands:</para>
83
84<screen><userinput><command>patch -d xpdf -Np0 -i ../../xpdf-3.00pl1.patch &amp;&amp;
85patch -d xpdf -Np0 -i ../../xpdf-3.00pl2.patch &amp;&amp;
86patch -d xpdf -Np0 -i ../../xpdf-&xpdf-version;.patch &amp;&amp;
87patch -Np1 -i ../xpdf-&xpdf-version;-freetype_2.1.7_hack-2.patch &amp;&amp;
88./configure --prefix=/usr --sysconfdir=/etc \
89 --with-freetype2-includes=/usr/include/freetype2 &amp;&amp;
90make</command></userinput></screen>
91
92<para>Now, as the root user:</para>
93
94<screen><userinput role='root'><command>make install</command></userinput></screen>
95
96</sect2>
97
98<sect2>
99<title>Installation command explanations</title>
100
101<para><option>--enable-a4-paper</option>: This switch must be
102added to set <acronym>DIN</acronym> A4 as the standard paper format.</para>
103
104</sect2>
105
106<sect2>
107<title>Configuring <application>Xpdf</application></title>
108
109<sect3 id="xpdf-config"><title>Config files</title>
110<para><filename>/etc/xpdfrc</filename> and
111<filename>~/.xpdfrc</filename></para>
112<indexterm zone="xpdf xpdf-config">
113<primary sortas="e-AA.xpdfrc">~/.xpdfrc</primary></indexterm>
114<indexterm zone="xpdf xpdf-config">
115<primary sortas="e-etc-xpdfrc">/etc/xpdfrc</primary></indexterm>
116</sect3>
117
118<sect3><title>Configuration Information</title>
119
120<para>In the <filename class='directory'>/etc</filename> directory you will
121find a sample <filename>xpdfrc</filename> that can be either copied to
122<filename>~/.xpdfrc</filename> or taken as an example to write your own
123configuration file. Below you'll find a condensed version of the file you
124may wish to build from.</para>
125
126<screen><userinput># Example .xpdfrc
127displayFontT1 Times-Roman /usr/share/ghostscript/fonts/n021003l.pfb
128displayFontT1 Times-Italic /usr/share/ghostscript/fonts/n021023l.pfb
129displayFontT1 Times-Bold /usr/share/ghostscript/fonts/n021004l.pfb
130displayFontT1 Times-BoldItalic /usr/share/ghostscript/fonts/n021024l.pfb
131displayFontT1 Helvetica /usr/share/ghostscript/fonts/n019003l.pfb
132displayFontT1 Helvetica-Oblique /usr/share/ghostscript/fonts/n019023l.pfb
133displayFontT1 Helvetica-Bold /usr/share/ghostscript/fonts/n019004l.pfb
134displayFontT1 Helvetica-BoldOblique /usr/share/ghostscript/fonts/n019024l.pfb
135displayFontT1 Courier /usr/share/ghostscript/fonts/n022003l.pfb
136displayFontT1 Courier-Oblique /usr/share/ghostscript/fonts/n022023l.pfb
137displayFontT1 Courier-Bold /usr/share/ghostscript/fonts/n022004l.pfb
138displayFontT1 Courier-BoldOblique /usr/share/ghostscript/fonts/n022024l.pfb
139displayFontT1 Symbol /usr/share/ghostscript/fonts/s050000l.pfb
140displayFontT1 ZapfDingbats /usr/share/ghostscript/fonts/d050000l.pfb
141
142fontDir /usr/X11R6/lib/X11/fonts/TTF
143
144psFile "|lpr"
145psPaperSize letter
146#psPaperSize A4
147textEOL unix
148
149enableT1lib yes
150enableFreeType yes
151antialias yes
152
153urlCommand "links -g %s"</userinput></screen>
154</sect3>
155
156</sect2>
157
158<sect2>
159<title>Contents</title>
160
161<segmentedlist>
162<segtitle>Installed Programs</segtitle>
163<segtitle>Installed Libraries</segtitle>
164<segtitle>Installed Directories</segtitle>
165
166<seglistitem>
167<seg>pdffonts, pdfimages, pdfinfo, pdftoppm, pdftops, pdftotext and xpdf</seg>
168<seg>None</seg>
169<seg>None</seg>
170</seglistitem>
171</segmentedlist>
172
173<variablelist>
174<bridgehead renderas="sect3">Short Descriptions</bridgehead>
175<?dbfo list-presentation="list"?>
176
177<varlistentry id="pdffonts">
178<term><command>pdffonts</command></term>
179<listitem><para>lists the fonts used in a <acronym>PDF</acronym> file along
180with various information for each font.</para>
181<indexterm zone="xpdf pdffonts">
182<primary sortas="b-pdffonts">pdffonts</primary>
183</indexterm></listitem>
184</varlistentry>
185
186<varlistentry id="pdfimages">
187<term><command>pdfimages</command></term>
188<listitem><para>saves images from a <acronym>PDF</acronym> file as
189<acronym>PPM</acronym>, <acronym>PBM</acronym>, or <acronym>JPEG</acronym>
190files.</para>
191<indexterm zone="xpdf pdfimages">
192<primary sortas="b-pdfimages">pdfimages</primary>
193</indexterm></listitem>
194</varlistentry>
195
196<varlistentry id="pdfinfo">
197<term><command>pdfinfo</command></term>
198<listitem><para>prints the contents of the 'Info' dictionary (plus some
199other useful information) from a <acronym>PDF</acronym> file.</para>
200<indexterm zone="xpdf pdfinfo">
201<primary sortas="b-pdfinfo">pdfinfo</primary>
202</indexterm></listitem>
203</varlistentry>
204
205<varlistentry id="pdftoppm">
206<term><command>pdftoppm</command></term>
207<listitem><para>converts <acronym>PDF</acronym> files to
208<acronym>PBM</acronym>, <acronym>PGM</acronym> and <acronym>PPM</acronym>
209formats.</para>
210<indexterm zone="xpdf pdftoppm">
211<primary sortas="b-pdftoppm">pdftoppm</primary>
212</indexterm></listitem>
213</varlistentry>
214
215<varlistentry id="pdftops">
216<term><command>pdftops</command></term>
217<listitem><para> converts <acronym>PDF</acronym> files to Postscript
218format.</para>
219<indexterm zone="xpdf pdftops">
220<primary sortas="b-pdftops">pdftops</primary>
221</indexterm></listitem>
222</varlistentry>
223
224<varlistentry id="pdftotext">
225<term><command>pdftotext</command></term>
226<listitem><para>parses <acronym>ASCII</acronym> text from
227<acronym>PDF</acronym> files.</para>
228<indexterm zone="xpdf pdftotext">
229<primary sortas="b-pdftotext">pdftotext</primary>
230</indexterm></listitem>
231</varlistentry>
232
233<varlistentry id="xpdf-prog">
234<term><command>xpdf</command></term>
235<listitem><para>displays files in <acronym>PDF</acronym> format.</para>
236<indexterm zone="xpdf xpdf-prog">
237<primary sortas="b-xpdf">xpdf</primary>
238</indexterm></listitem>
239</varlistentry>
240</variablelist>
241
242</sect2>
243
244</sect1>
Note: See TracBrowser for help on using the repository browser.