source: general/graphlib/poppler.xml@ 9b6d8fc

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9b6d8fc was 9b6d8fc, checked in by Igor Živković <igor@…>, 9 years ago

openjpeg2 is in the book

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

  • Property mode set to 100644
File size: 17.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY poppler-download-http
8 "http://poppler.freedesktop.org/poppler-&poppler-version;.tar.xz">
9 <!ENTITY poppler-download-ftp " ">
10 <!ENTITY poppler-md5sum "fb0a9d82b5433c823421a123eb8e9789">
11 <!ENTITY poppler-size "1.6 MB">
12 <!ENTITY poppler-buildsize "148 MB (building Qt4 and Qt5 libraries, additional 47 MB for the test suites and 24 MB for poppler-data)">
13 <!ENTITY poppler-time "1.7 SBU (building Qt4 and Qt5 libraries, additional 0.4 SBU for the test suites)">
14
15 <!ENTITY poppler-data-version "0.4.7">
16
17 <!ENTITY poppler-data-download-http
18 "http://poppler.freedesktop.org/poppler-data-&poppler-data-version;.tar.gz">
19 <!ENTITY poppler-data-md5sum "636a8f2b9f6df9e7ced8ec0946961eaf">
20 <!ENTITY poppler-data-size "4.0 MB">
21]>
22
23<sect1 id="poppler" xreflabel="Poppler-&poppler-version;">
24 <?dbhtml filename="poppler.html"?>
25
26 <sect1info>
27 <othername>$LastChangedBy$</othername>
28 <date>$Date$</date>
29 </sect1info>
30
31 <title>Poppler-&poppler-version;</title>
32
33 <indexterm zone="poppler">
34 <primary sortas="a-Poppler">Poppler</primary>
35 </indexterm>
36
37 <sect2 role="package">
38 <title>Introduction to Poppler</title>
39
40 <para>
41 The <application>Poppler</application> package contains a PDF rendering
42 library and command line tools used to manipulate PDF files. This is
43 useful for providing PDF rendering functionality as a shared library.
44 </para>
45
46 &lfs76_checked;
47
48 <bridgehead renderas="sect3">Package Information</bridgehead>
49 <itemizedlist spacing="compact">
50 <listitem>
51 <para>
52 Download (HTTP): <ulink url="&poppler-download-http;"/>
53 </para>
54 </listitem>
55 <listitem>
56 <para>
57 Download (FTP): <ulink url="&poppler-download-ftp;"/>
58 </para>
59 </listitem>
60 <listitem>
61 <para>
62 Download MD5 sum: &poppler-md5sum;
63 </para>
64 </listitem>
65 <listitem>
66 <para>
67 Download size: &poppler-size;
68 </para>
69 </listitem>
70 <listitem>
71 <para>
72 Estimated disk space required: &poppler-buildsize;
73 </para>
74 </listitem>
75 <listitem>
76 <para>
77 Estimated build time: &poppler-time;
78 </para>
79 </listitem>
80 </itemizedlist>
81
82 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
83
84 <itemizedlist spacing="compact">
85 <title>Poppler Encoding Data</title>
86 <listitem>
87 <para>
88 Download (HTTP): <ulink url="&poppler-data-download-http;"/>
89 </para>
90 </listitem>
91 <listitem>
92 <para>
93 Download MD5 sum: &poppler-data-md5sum;
94 </para>
95 </listitem>
96 <listitem>
97 <para>
98 Download size: &poppler-data-size;
99 </para>
100 </listitem>
101 </itemizedlist>
102
103 <para>
104 The additional package consists of encoding files for use with
105 <application>Poppler</application>. The encoding files are optional and
106 <application>Poppler</application> will automatically read them if they
107 are present. When installed, they enable
108 <application>Poppler</application> to render CJK and Cyrillic properly.
109 </para>
110
111 <bridgehead renderas="sect3">Poppler Dependencies</bridgehead>
112
113 <bridgehead renderas="sect4">Required</bridgehead>
114 <para role="required">
115 <xref linkend="fontconfig"/>
116 </para>
117
118 <bridgehead renderas="sect4">Recommended</bridgehead>
119 <para role="recommended">
120 <xref linkend="cairo"/>,
121 <xref linkend="libjpeg"/>, and
122 <xref linkend="libpng"/>
123 </para>
124
125 <bridgehead renderas="sect4">Optional</bridgehead>
126 <para role="optional">
127 <xref linkend="curl"/>,
128 <xref linkend="gobject-introspection"/>,
129 <xref linkend="gtk-doc"/>,
130 <xref linkend="gtk2"/>,
131 <xref linkend="lcms"/> or <xref linkend="lcms2"/>,
132 <xref linkend="libtiff"/>,
133 <xref linkend="openjpeg"/> or
134 <xref linkend="openjpeg2"/>
135 (preference is for OpenJPEG1, due to regressions in OpenJPEG2),
136 <xref linkend="qt4"/> (the <filename>libpoppler-qt4.so</filename> library
137 is needed for PDF support in <application>Okular</application>), and
138 <xref linkend="qt5"/>
139 </para>
140
141 <para condition="html" role="usernotes">
142 User Notes: <ulink url="&blfs-wiki;/poppler"/>
143 </para>
144 </sect2>
145
146 <sect2 role="installation">
147 <title>Installation of Poppler</title>
148
149 <para>
150 In order to optionally run the test suite, additional download of about
151 9 MB, using <xref linkend="git"/>, is necessary. Make sure that you do
152 not have the directory ../test.
153 </para>
154
155<screen><userinput>git clone git://git.freedesktop.org/git/poppler/test ../test</userinput></screen>
156
157 <para>
158 This package may be built either without <application>Qt</application>
159 library, or with one or both versions of <application>Qt4 and
160 5</application> libraries. In order to build the
161 <application>Qt4</application> and <application>Qt5</application>
162 libraries, you need to run the install commands twice, because, although
163 both are detected, only the wrapper for the the first
164 <application>Qt</application> version in the PATH is built.
165 </para>
166
167 <para>
168 The instructions are divided into four parts: first, build with
169 <application>Qt4 or 5</application> at <filename
170 class="directory">/user</filename>, without <application>Qt</application>
171 or with <application>Qt4</application> under <filename
172 class="directory">/opt</filename>; second, build with
173 <application>Qt5</application> under <filename
174 class="directory">/opt</filename>; third, install the common documents
175 (optional); and fourth, install the additional encoding data package.
176 </para>
177
178<!-- ==== With Qt4 or 5 at /user, without Qt or with Qt4 under /opt ====== -->
179 <bridgehead renderas="sect3">With Qt4 or 5 at /user, without Qt or with Qt4
180 under /opt</bridgehead>
181
182 <para>
183 Install <application>Poppler</application> by running the following
184 commands:
185 </para>
186
187<!-- Warning: Using zlib is not totally safe -->
188<screen><userinput>[ -e /usr/bin/setqt4 ] &amp;&amp; source setqt4 || [ ! -e /usr/bin/setqt5 ] &amp;&amp;
189./configure --prefix=/usr \
190 --sysconfdir=/etc \
191 --disable-static \
192 --enable-xpdf-headers &amp;&amp;
193make</userinput></screen>
194
195 <para>
196 To test the results, issue: <command>make check</command>.
197 </para>
198
199 <para>
200 Now, as the <systemitem class="username">root</systemitem> user:
201 </para>
202
203<screen role="root"><userinput>make install</userinput></screen>
204
205<!-- ==== With Qt5 under /opt ====== -->
206 <bridgehead renderas="sect3">With Qt5 under /opt </bridgehead>
207
208 <para>
209 Install <application>Poppler</application> by running the following
210 commands:
211 </para>
212
213<!-- Warning: Using zlib is not totally safe -->
214<screen><userinput>[ -e /usr/bin/setqt5 ] &amp;&amp; source setqt5 &amp;&amp;
215./configure --prefix=/usr \
216 --sysconfdir=/etc \
217 --disable-static \
218 --enable-xpdf-headers &amp;&amp;
219make</userinput></screen>
220
221 <para>
222 To test the results, issue: <command>make check</command>.
223 </para>
224
225 <para>
226 Now, as the <systemitem class="username">root</systemitem> user:
227 </para>
228
229<screen role="root"><userinput>make install</userinput></screen>
230
231<!-- ==== Documents ====== -->
232 <bridgehead renderas="sect3">Documents</bridgehead>
233
234 <para>
235 The documents are installed using the following commands:
236 </para>
237
238<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/poppler-&poppler-version; &amp;&amp;
239install -v -m644 README* /usr/share/doc/poppler-&poppler-version; &amp;&amp;
240cp -vr glib/reference/html /usr/share/doc/poppler-&poppler-version;</userinput></screen>
241
242<!-- ==== Poppler Data ====== -->
243 <bridgehead renderas="sect3">Poppler Data</bridgehead>
244
245 <para>
246 If you downloaded the additional encoding data package, install it by
247 issuing the following commands as the
248 <systemitem class="username">root</systemitem> user:
249 </para>
250
251<screen><userinput>tar -xf ../poppler-data-&poppler-data-version;.tar.gz &amp;&amp;
252cd poppler-data-&poppler-data-version;</userinput></screen>
253
254 <para>
255 Now, as the <systemitem class="username">root</systemitem> user:
256 </para>
257
258<screen role="root"><userinput>make prefix=/usr install</userinput></screen>
259
260 </sect2>
261
262 <sect2 role="commands">
263 <title>Command Explanations</title>
264
265 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
266 href="../../xincludes/static-libraries.xml"/>
267
268 <para>
269 <option>--enable-xpdf-headers</option>: Install some old
270 <application>Xpdf</application> headers required by certain programs (e.g.
271 <application>Okular</application>, <application>LibreOffice</application>
272 and <application>Inkscape</application>).
273 </para>
274
275 <para>
276 <option>--enable-libcurl</option>: Use libcurl for HTTP support.
277 </para>
278
279 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
280 href="../../xincludes/gtk-doc-rebuild.xml"/>
281
282 </sect2>
283
284 <sect2 role="content">
285 <title>Contents</title>
286
287 <segmentedlist>
288 <segtitle>Installed Programs</segtitle>
289 <segtitle>Installed Libraries</segtitle>
290 <segtitle>Installed Directories</segtitle>
291
292 <seglistitem>
293 <seg>
294 pdfdetach, pdffonts, pdfimages, pdfinfo, pdfseparate,
295 pdftocairo, pdftohtml, pdftoppm, pdftops, pdftotext,
296 pdfunite, and poppler-glib-demo
297 </seg>
298 <seg>
299 libpoppler.so, libpoppler-cpp.so,
300 libpoppler-glib.so,
301 libpoppler-qt4.so, and
302 libpoppler-qt5.so
303 </seg>
304 <seg>
305 /usr/include/poppler,
306 /usr/share/doc/poppler-&poppler-version;,
307 /usr/share/gtk-doc/html/poppler, and
308 /usr/share/poppler
309 </seg>
310 </seglistitem>
311 </segmentedlist>
312
313 <variablelist>
314 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
315 <?dbfo list-presentation="list"?>
316 <?dbhtml list-presentation="table"?>
317
318 <varlistentry id="pdfdetach">
319 <term><command>pdfdetach</command></term>
320 <listitem>
321 <para>
322 lists or extracts embedded files from PDF files.
323 </para>
324 <indexterm zone="poppler pdfdetach">
325 <primary sortas="b-pdfdetach">pdfdetach</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="pdffonts">
331 <term><command>pdffonts</command></term>
332 <listitem>
333 <para>
334 lists the fonts used in a PDF file along with various information
335 for each font.
336 </para>
337 <indexterm zone="poppler pdffonts">
338 <primary sortas="b-pdffonts">pdffonts</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343 <varlistentry id="pdfimages">
344 <term><command>pdfimages</command></term>
345 <listitem>
346 <para>
347 saves images from a PDF file as PPM, PBM, or JPEG files.
348 </para>
349 <indexterm zone="poppler pdfimages">
350 <primary sortas="b-pdfimages">pdfimages</primary>
351 </indexterm>
352 </listitem>
353 </varlistentry>
354
355 <varlistentry id="pdfinfo">
356 <term><command>pdfinfo</command></term>
357 <listitem>
358 <para>
359 prints the contents of the 'Info' dictionary (plus some other useful
360 information) from a PDF file.
361 </para>
362 <indexterm zone="poppler pdfinfo">
363 <primary sortas="b-pdfinfo">pdfinfo</primary>
364 </indexterm>
365 </listitem>
366 </varlistentry>
367
368 <varlistentry id="pdfseparate">
369 <term><command>pdfseparate</command></term>
370 <listitem>
371 <para>
372 extracts single pages from a PDF file.
373 </para>
374 <indexterm zone="poppler pdfseparate">
375 <primary sortas="b-pdseparate">pdfseparate</primary>
376 </indexterm>
377 </listitem>
378 </varlistentry>
379
380 <varlistentry id="pdftocairo">
381 <term><command>pdftocairo</command></term>
382 <listitem>
383 <para>
384 converts a PDF file to one of several formats (PNG, JPEG, PDF, PS,
385 EPS, SVG) using the cairo output device of the poppler library.
386 </para>
387 <indexterm zone="poppler pdftocairo">
388 <primary sortas="b-pdftocairo">pdftocairo</primary>
389 </indexterm>
390 </listitem>
391 </varlistentry>
392
393 <varlistentry id="pdftohtml">
394 <term><command>pdftohtml</command></term>
395 <listitem>
396 <para>
397 converts a PDF file to HTML.
398 </para>
399 <indexterm zone="poppler pdftohtml">
400 <primary sortas="b-pdftohtml">pdftohtml</primary>
401 </indexterm>
402 </listitem>
403 </varlistentry>
404
405 <varlistentry id="pdftoppm">
406 <term><command>pdftoppm</command></term>
407 <listitem>
408 <para>
409 converts PDF files to PBM, PGM and PPM formats.
410 </para>
411 <indexterm zone="poppler pdftoppm">
412 <primary sortas="b-pdftoppm">pdftoppm</primary>
413 </indexterm>
414 </listitem>
415 </varlistentry>
416
417 <varlistentry id="pdftops">
418 <term><command>pdftops</command></term>
419 <listitem>
420 <para>
421 converts PDF files to Postscript format.
422 </para>
423 <indexterm zone="poppler pdftops">
424 <primary sortas="b-pdftops">pdftops</primary>
425 </indexterm>
426 </listitem>
427 </varlistentry>
428
429 <varlistentry id="pdftotext">
430 <term><command>pdftotext</command></term>
431 <listitem>
432 <para>
433 converts PDF files to plain text.
434 </para>
435 <indexterm zone="poppler pdftotext">
436 <primary sortas="b-pdftotext">pdftotext</primary>
437 </indexterm>
438 </listitem>
439 </varlistentry>
440
441 <varlistentry id="pdfunite">
442 <term><command>pdfunite</command></term>
443 <listitem>
444 <para>
445 merges several PDF files, in the order of their occurrence on the
446 command line, to one PDF output file.
447 </para>
448 <indexterm zone="poppler pdfunite">
449 <primary sortas="b-pdfunite">pdfunite</primary>
450 </indexterm>
451 </listitem>
452 </varlistentry>
453
454 <varlistentry id="poppler-glib-demo">
455 <term><command>poppler-glib-demo</command></term>
456 <listitem>
457 <para>
458 is a tool to demonstrate the API, and for use when debugging and
459 testing <application>Poppler</application>.
460 </para>
461 <indexterm zone="poppler poppler-glib-demo">
462 <primary sortas="b-poppler-glib-demo">poppler-glib-demo</primary>
463 </indexterm>
464 </listitem>
465 </varlistentry>
466
467 <varlistentry id="libpoppler">
468 <term><filename class="libraryfile">libpoppler.so</filename></term>
469 <listitem>
470 <para>
471 contains the API functions to render PDF files.
472 </para>
473 <indexterm zone="poppler libpoppler">
474 <primary sortas="c-libpoppler">libpoppler.so</primary>
475 </indexterm>
476 </listitem>
477 </varlistentry>
478
479 <varlistentry id="libpoppler-cpp">
480 <term><filename class="libraryfile">libpoppler-cpp.so</filename></term>
481 <listitem>
482 <para>
483 is a C++ backend for rendering PDF files.
484 </para>
485 <indexterm zone="poppler libpoppler-cpp">
486 <primary sortas="c-libpoppler-cpp">libpoppler-cpp.so</primary>
487 </indexterm>
488 </listitem>
489 </varlistentry>
490
491 <varlistentry id="libpoppler-glib">
492 <term><filename class="libraryfile">libpoppler-glib.so</filename></term>
493 <listitem>
494 <para>
495 is a wrapper library used to interface the PDF rendering functions
496 with <application>GTK+</application>.
497 </para>
498 <indexterm zone="poppler libpoppler-glib">
499 <primary sortas="c-libpoppler-glib">libpoppler-glib.so</primary>
500 </indexterm>
501 </listitem>
502 </varlistentry>
503
504 <varlistentry id="libpoppler-qt4">
505 <term><filename class="libraryfile">libpoppler-qt4.so</filename></term>
506 <listitem>
507 <para>
508 is a wrapper library used to interface the PDF rendering functions
509 with <application>Qt</application>4.
510 </para>
511 <indexterm zone="poppler libpoppler-qt4">
512 <primary sortas="c-libpoppler-qt4">libpoppler-qt4.so</primary>
513 </indexterm>
514 </listitem>
515 </varlistentry>
516
517 <varlistentry id="libpoppler-qt5">
518 <term><filename class="libraryfile">libpoppler-qt5.so</filename></term>
519 <listitem>
520 <para>
521 is a wrapper library used to interface the PDF rendering functions
522 with <application>Qt</application>5.
523 </para>
524 <indexterm zone="poppler libpoppler-qt5">
525 <primary sortas="c-libpoppler-qt5">libpoppler-qt5.so</primary>
526 </indexterm>
527 </listitem>
528 </varlistentry>
529
530 </variablelist>
531
532 </sect2>
533
534</sect1>
Note: See TracBrowser for help on using the repository browser.