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
RevLine 
[5474306]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[5474306]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[2511f83]7 <!ENTITY poppler-download-http
[2217b13]8 "http://poppler.freedesktop.org/poppler-&poppler-version;.tar.xz">
[8a1b4b52]9 <!ENTITY poppler-download-ftp " ">
[626321c]10 <!ENTITY poppler-md5sum "fb0a9d82b5433c823421a123eb8e9789">
[420c072]11 <!ENTITY poppler-size "1.6 MB">
[626321c]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)">
[8a1b4b52]14
[af21cbe2]15 <!ENTITY poppler-data-version "0.4.7">
[e0fc156]16
[2511f83]17 <!ENTITY poppler-data-download-http
[e0fc156]18 "http://poppler.freedesktop.org/poppler-data-&poppler-data-version;.tar.gz">
[af21cbe2]19 <!ENTITY poppler-data-md5sum "636a8f2b9f6df9e7ced8ec0946961eaf">
[8a1b4b52]20 <!ENTITY poppler-data-size "4.0 MB">
[5474306]21]>
22
23<sect1 id="poppler" xreflabel="Poppler-&poppler-version;">
24 <?dbhtml filename="poppler.html"?>
25
26 <sect1info>
[3ca3085]27 <othername>$LastChangedBy$</othername>
28 <date>$Date$</date>
[5474306]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
[2511f83]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>
[5474306]45
[4116c85]46 &lfs76_checked;
[49f7d8b]47
[5474306]48 <bridgehead renderas="sect3">Package Information</bridgehead>
49 <itemizedlist spacing="compact">
50 <listitem>
[2511f83]51 <para>
52 Download (HTTP): <ulink url="&poppler-download-http;"/>
53 </para>
[5474306]54 </listitem>
55 <listitem>
[2511f83]56 <para>
57 Download (FTP): <ulink url="&poppler-download-ftp;"/>
58 </para>
[5474306]59 </listitem>
60 <listitem>
[2511f83]61 <para>
62 Download MD5 sum: &poppler-md5sum;
63 </para>
[5474306]64 </listitem>
65 <listitem>
[2511f83]66 <para>
67 Download size: &poppler-size;
68 </para>
[5474306]69 </listitem>
70 <listitem>
[2511f83]71 <para>
72 Estimated disk space required: &poppler-buildsize;
73 </para>
[5474306]74 </listitem>
75 <listitem>
[2511f83]76 <para>
77 Estimated build time: &poppler-time;
78 </para>
[5474306]79 </listitem>
80 </itemizedlist>
81
[d931c7f]82 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[8a1b4b52]83
[d931c7f]84 <itemizedlist spacing="compact">
[8a1b4b52]85 <title>Poppler Encoding Data</title>
86 <listitem>
[2511f83]87 <para>
88 Download (HTTP): <ulink url="&poppler-data-download-http;"/>
89 </para>
[8a1b4b52]90 </listitem>
91 <listitem>
[2511f83]92 <para>
93 Download MD5 sum: &poppler-data-md5sum;
94 </para>
[8a1b4b52]95 </listitem>
[d931c7f]96 <listitem>
[2511f83]97 <para>
98 Download size: &poppler-data-size;
99 </para>
[d931c7f]100 </listitem>
101 </itemizedlist>
102
[2511f83]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
[5474306]111 <bridgehead renderas="sect3">Poppler Dependencies</bridgehead>
112
[d931c7f]113 <bridgehead renderas="sect4">Required</bridgehead>
[e0fc156]114 <para role="required">
115 <xref linkend="fontconfig"/>
116 </para>
[d931c7f]117
[cf1a2b8]118 <bridgehead renderas="sect4">Recommended</bridgehead>
[2511f83]119 <para role="recommended">
[8d32ac9]120 <xref linkend="cairo"/>,
[4529754]121 <xref linkend="libjpeg"/>, and
[8d32ac9]122 <xref linkend="libpng"/>
[cf1a2b8]123 </para>
124
[5474306]125 <bridgehead renderas="sect4">Optional</bridgehead>
[2511f83]126 <para role="optional">
127 <xref linkend="curl"/>,
[f6c00d7b]128 <xref linkend="gobject-introspection"/>,
[8c8fcaa7]129 <xref linkend="gtk-doc"/>,
[2511f83]130 <xref linkend="gtk2"/>,
131 <xref linkend="lcms"/> or <xref linkend="lcms2"/>,
132 <xref linkend="libtiff"/>,
[626321c]133 <xref linkend="openjpeg"/> or
[9b6d8fc]134 <xref linkend="openjpeg2"/>
[626321c]135 (preference is for OpenJPEG1, due to regressions in OpenJPEG2),
[7af92fe5]136 <xref linkend="qt4"/> (the <filename>libpoppler-qt4.so</filename> library
[4529754]137 is needed for PDF support in <application>Okular</application>), and
[f3a6abc9]138 <xref linkend="qt5"/>
[2511f83]139 </para>
[1039de3]140
[2511f83]141 <para condition="html" role="usernotes">
142 User Notes: <ulink url="&blfs-wiki;/poppler"/>
143 </para>
[5474306]144 </sect2>
145
146 <sect2 role="installation">
147 <title>Installation of Poppler</title>
148
[b1a8aad7]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
[8aee9eb]157 <para>
[5dab7b65]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
[8aee9eb]161 <application>Qt4</application> and <application>Qt5</application>
[5dab7b65]162 libraries, you need to run the install commands twice, because, although
163 both are detected, only the wrapper for the the first
[a544789]164 <application>Qt</application> version in the PATH is built.
[8aee9eb]165 </para>
[38489d2e]166
[a544789]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>
[5dab7b65]181
[2511f83]182 <para>
183 Install <application>Poppler</application> by running the following
184 commands:
185 </para>
186
[0c7d410]187<!-- Warning: Using zlib is not totally safe -->
[5dab7b65]188<screen><userinput>[ -e /usr/bin/setqt4 ] &amp;&amp; source setqt4 || [ ! -e /usr/bin/setqt5 ] &amp;&amp;
189./configure --prefix=/usr \
[95b1905]190 --sysconfdir=/etc \
[4520f55]191 --disable-static \
[95b1905]192 --enable-xpdf-headers &amp;&amp;
[5474306]193make</userinput></screen>
194
[2511f83]195 <para>
[b1a8aad7]196 To test the results, issue: <command>make check</command>.
[2511f83]197 </para>
[5474306]198
[2511f83]199 <para>
200 Now, as the <systemitem class="username">root</systemitem> user:
201 </para>
[5474306]202
[8aee9eb]203<screen role="root"><userinput>make install</userinput></screen>
204
[a544789]205<!-- ==== With Qt5 under /opt ====== -->
206 <bridgehead renderas="sect3">With Qt5 under /opt </bridgehead>
[5dab7b65]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
[8aee9eb]221 <para>
[5dab7b65]222 To test the results, issue: <command>make check</command>.
[8aee9eb]223 </para>
224
[5dab7b65]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
[8aee9eb]234 <para>
235 The documents are installed using the following commands:
236 </para>
237
[2a5ad24]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>
[d931c7f]241
[5dab7b65]242<!-- ==== Poppler Data ====== -->
243 <bridgehead renderas="sect3">Poppler Data</bridgehead>
244
[2511f83]245 <para>
246 If you downloaded the additional encoding data package, install it by
[8aee9eb]247 issuing the following commands as the
248 <systemitem class="username">root</systemitem> user:
[2511f83]249 </para>
[2c06b85]250
251<screen><userinput>tar -xf ../poppler-data-&poppler-data-version;.tar.gz &amp;&amp;
252cd poppler-data-&poppler-data-version;</userinput></screen>
253
[2511f83]254 <para>
255 Now, as the <systemitem class="username">root</systemitem> user:
256 </para>
[d931c7f]257
258<screen role="root"><userinput>make prefix=/usr install</userinput></screen>
[0c7d410]259
[5474306]260 </sect2>
261
262 <sect2 role="commands">
263 <title>Command Explanations</title>
264
[2511f83]265 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
266 href="../../xincludes/static-libraries.xml"/>
[35e21bf]267
[2511f83]268 <para>
269 <option>--enable-xpdf-headers</option>: Install some old
270 <application>Xpdf</application> headers required by certain programs (e.g.
[6459a7e2]271 <application>Okular</application>, <application>LibreOffice</application>
[2511f83]272 and <application>Inkscape</application>).
273 </para>
[cf1a2b8]274
[9f11d7f]275 <para>
276 <option>--enable-libcurl</option>: Use libcurl for HTTP support.
277 </para>
278
[8c8fcaa7]279 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
280 href="../../xincludes/gtk-doc-rebuild.xml"/>
281
[5474306]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>
[2511f83]293 <seg>
[6459a7e2]294 pdfdetach, pdffonts, pdfimages, pdfinfo, pdfseparate,
295 pdftocairo, pdftohtml, pdftoppm, pdftops, pdftotext,
[b4c7420]296 pdfunite, and poppler-glib-demo
[2511f83]297 </seg>
298 <seg>
[6459a7e2]299 libpoppler.so, libpoppler-cpp.so,
[f3a6abc9]300 libpoppler-glib.so,
301 libpoppler-qt4.so, and
302 libpoppler-qt5.so
[2511f83]303 </seg>
304 <seg>
[8d32ac9]305 /usr/include/poppler,
306 /usr/share/doc/poppler-&poppler-version;,
[b4c7420]307 /usr/share/gtk-doc/html/poppler, and
[8d32ac9]308 /usr/share/poppler
[2511f83]309 </seg>
[5474306]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
[95b1905]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>
[0d7900a]328 </varlistentry>
329
[2d1ea57b]330 <varlistentry id="pdffonts">
[a5dfefb2]331 <term><command>pdffonts</command></term>
332 <listitem>
[2511f83]333 <para>
334 lists the fonts used in a PDF file along with various information
335 for each font.
336 </para>
[a5dfefb2]337 <indexterm zone="poppler pdffonts">
338 <primary sortas="b-pdffonts">pdffonts</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
[2d1ea57b]343 <varlistentry id="pdfimages">
[a5dfefb2]344 <term><command>pdfimages</command></term>
345 <listitem>
[2511f83]346 <para>
347 saves images from a PDF file as PPM, PBM, or JPEG files.
348 </para>
[a5dfefb2]349 <indexterm zone="poppler pdfimages">
350 <primary sortas="b-pdfimages">pdfimages</primary>
351 </indexterm>
352 </listitem>
353 </varlistentry>
354
[2d1ea57b]355 <varlistentry id="pdfinfo">
[a5dfefb2]356 <term><command>pdfinfo</command></term>
357 <listitem>
[2511f83]358 <para>
359 prints the contents of the 'Info' dictionary (plus some other useful
360 information) from a PDF file.
361 </para>
[a5dfefb2]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>
[2511f83]371 <para>
372 extracts single pages from a PDF file.
373 </para>
[a5dfefb2]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>
[2511f83]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>
[a5dfefb2]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>
[2511f83]396 <para>
397 converts a PDF file to HTML.
398 </para>
[a5dfefb2]399 <indexterm zone="poppler pdftohtml">
400 <primary sortas="b-pdftohtml">pdftohtml</primary>
401 </indexterm>
402 </listitem>
403 </varlistentry>
404
[2d1ea57b]405 <varlistentry id="pdftoppm">
[a5dfefb2]406 <term><command>pdftoppm</command></term>
407 <listitem>
[2511f83]408 <para>
409 converts PDF files to PBM, PGM and PPM formats.
410 </para>
[a5dfefb2]411 <indexterm zone="poppler pdftoppm">
412 <primary sortas="b-pdftoppm">pdftoppm</primary>
413 </indexterm>
414 </listitem>
415 </varlistentry>
416
[2d1ea57b]417 <varlistentry id="pdftops">
[a5dfefb2]418 <term><command>pdftops</command></term>
419 <listitem>
[2511f83]420 <para>
421 converts PDF files to Postscript format.
422 </para>
[a5dfefb2]423 <indexterm zone="poppler pdftops">
424 <primary sortas="b-pdftops">pdftops</primary>
425 </indexterm>
426 </listitem>
427 </varlistentry>
428
[2d1ea57b]429 <varlistentry id="pdftotext">
[a5dfefb2]430 <term><command>pdftotext</command></term>
431 <listitem>
[2511f83]432 <para>
433 converts PDF files to plain text.
434 </para>
[a5dfefb2]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>
[2511f83]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>
[a5dfefb2]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>
[2511f83]457 <para>
458 is a tool to demonstrate the API, and for use when debugging and
[6459a7e2]459 testing <application>Poppler</application>.
[2511f83]460 </para>
[a5dfefb2]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
[5474306]467 <varlistentry id="libpoppler">
[6459a7e2]468 <term><filename class="libraryfile">libpoppler.so</filename></term>
[5474306]469 <listitem>
[2511f83]470 <para>
471 contains the API functions to render PDF files.
472 </para>
[5474306]473 <indexterm zone="poppler libpoppler">
[a5dfefb2]474 <primary sortas="c-libpoppler">libpoppler.so</primary>
[5474306]475 </indexterm>
476 </listitem>
477 </varlistentry>
478
[7d564a1]479 <varlistentry id="libpoppler-cpp">
[6459a7e2]480 <term><filename class="libraryfile">libpoppler-cpp.so</filename></term>
[7d564a1]481 <listitem>
[2511f83]482 <para>
483 is a C++ backend for rendering PDF files.
484 </para>
[7d564a1]485 <indexterm zone="poppler libpoppler-cpp">
[a5dfefb2]486 <primary sortas="c-libpoppler-cpp">libpoppler-cpp.so</primary>
[7d564a1]487 </indexterm>
488 </listitem>
489 </varlistentry>
490
[5474306]491 <varlistentry id="libpoppler-glib">
[6459a7e2]492 <term><filename class="libraryfile">libpoppler-glib.so</filename></term>
[5474306]493 <listitem>
[2511f83]494 <para>
495 is a wrapper library used to interface the PDF rendering functions
496 with <application>GTK+</application>.
497 </para>
[5474306]498 <indexterm zone="poppler libpoppler-glib">
[a5dfefb2]499 <primary sortas="c-libpoppler-glib">libpoppler-glib.so</primary>
[5474306]500 </indexterm>
501 </listitem>
502 </varlistentry>
503
504 <varlistentry id="libpoppler-qt4">
[6459a7e2]505 <term><filename class="libraryfile">libpoppler-qt4.so</filename></term>
[5474306]506 <listitem>
[2511f83]507 <para>
508 is a wrapper library used to interface the PDF rendering functions
[f3a6abc9]509 with <application>Qt</application>4.
[2511f83]510 </para>
[5474306]511 <indexterm zone="poppler libpoppler-qt4">
[a5dfefb2]512 <primary sortas="c-libpoppler-qt4">libpoppler-qt4.so</primary>
[5474306]513 </indexterm>
514 </listitem>
515 </varlistentry>
[6459a7e2]516
[f3a6abc9]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
[5474306]530 </variablelist>
[6459a7e2]531
[5474306]532 </sect2>
[6459a7e2]533
[5474306]534</sect1>
Note: See TracBrowser for help on using the repository browser.