source: general/graphlib/poppler.xml@ 79c7118

12.2 gimp3 lazarus trunk xry111/for-12.3 xry111/spidermonkey128
Last change on this file since 79c7118 was a43ab15, checked in by Bruce Dubbs <bdubbs@…>, 5 months ago

Update to poppler-24.05.0.

  • Property mode set to 100644
File size: 17.1 KB
RevLine 
[ab4fdfc]1<?xml version="1.0" encoding="UTF-8"?>
[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
[8dfc5c3]7 <!ENTITY poppler-download-http "https://poppler.freedesktop.org/poppler-&poppler-version;.tar.xz">
8 <!ENTITY poppler-download-ftp " ">
[a43ab15]9 <!ENTITY poppler-md5sum "a9f302feb3b79a99f66fa9d1e4af49ac">
[faab1bd]10 <!ENTITY poppler-size "1.8 MB">
[a43ab15]11 <!ENTITY poppler-buildsize "87 MB (with Qt6 library; add 13 MB for tests)">
12 <!ENTITY poppler-time "1.2 SBU (with parallelism=4, tests, and Qt6 library)">
13 <!-- For poppler 24.05.0 All 65 tests passed in 1.8 seconds -->
[8a1b4b52]14
[ba2138a]15 <!ENTITY poppler-data-version "0.4.12">
[e0fc156]16
[8dfc5c3]17 <!ENTITY poppler-data-download-http "https://poppler.freedesktop.org/poppler-data-&poppler-data-version;.tar.gz">
[e5a4b48]18 <!ENTITY poppler-data-md5sum "67ee4a40aa830b1f6e2560ce5f6471ba">
[758f3f6]19 <!ENTITY poppler-data-size "4.3 MB">
[a560ac8]20 <!ENTITY poppler-data-buildsize "26 MB">
[da8baac5]21 <!ENTITY poppler-data-time "less than 0.1 SBU">
[5474306]22]>
23
24<sect1 id="poppler" xreflabel="Poppler-&poppler-version;">
25 <?dbhtml filename="poppler.html"?>
26
27
28 <title>Poppler-&poppler-version;</title>
29
30 <indexterm zone="poppler">
31 <primary sortas="a-Poppler">Poppler</primary>
32 </indexterm>
33
34 <sect2 role="package">
35 <title>Introduction to Poppler</title>
36
[2511f83]37 <para>
38 The <application>Poppler</application> package contains a PDF rendering
39 library and command line tools used to manipulate PDF files. This is
40 useful for providing PDF rendering functionality as a shared library.
41 </para>
[5474306]42
[2fec8e3]43 &lfs121_checked;
[49f7d8b]44
[5474306]45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing="compact">
47 <listitem>
[2511f83]48 <para>
49 Download (HTTP): <ulink url="&poppler-download-http;"/>
50 </para>
[5474306]51 </listitem>
52 <listitem>
[2511f83]53 <para>
54 Download (FTP): <ulink url="&poppler-download-ftp;"/>
55 </para>
[5474306]56 </listitem>
57 <listitem>
[2511f83]58 <para>
59 Download MD5 sum: &poppler-md5sum;
60 </para>
[5474306]61 </listitem>
62 <listitem>
[2511f83]63 <para>
64 Download size: &poppler-size;
65 </para>
[5474306]66 </listitem>
67 <listitem>
[2511f83]68 <para>
69 Estimated disk space required: &poppler-buildsize;
70 </para>
[5474306]71 </listitem>
72 <listitem>
[2511f83]73 <para>
74 Estimated build time: &poppler-time;
75 </para>
[5474306]76 </listitem>
77 </itemizedlist>
78
[d931c7f]79 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[8a1b4b52]80
[d931c7f]81 <itemizedlist spacing="compact">
[8a1b4b52]82 <title>Poppler Encoding Data</title>
83 <listitem>
[2511f83]84 <para>
85 Download (HTTP): <ulink url="&poppler-data-download-http;"/>
86 </para>
[8a1b4b52]87 </listitem>
88 <listitem>
[2511f83]89 <para>
90 Download MD5 sum: &poppler-data-md5sum;
91 </para>
[8a1b4b52]92 </listitem>
[d931c7f]93 <listitem>
[2511f83]94 <para>
95 Download size: &poppler-data-size;
96 </para>
[d931c7f]97 </listitem>
[da8baac5]98 <listitem>
99 <para>
100 Estimated disk space required: &poppler-data-buildsize;
101 </para>
102 </listitem>
103 <listitem>
104 <para>
105 Estimated build time: &poppler-data-time;
106 </para>
107 </listitem>
[d931c7f]108 </itemizedlist>
109
[2511f83]110 <para>
111 The additional package consists of encoding files for use with
112 <application>Poppler</application>. The encoding files are optional and
113 <application>Poppler</application> will automatically read them if they
114 are present. When installed, they enable
115 <application>Poppler</application> to render CJK and Cyrillic properly.
116 </para>
117
[5474306]118 <bridgehead renderas="sect3">Poppler Dependencies</bridgehead>
119
[d931c7f]120 <bridgehead renderas="sect4">Required</bridgehead>
[e0fc156]121 <para role="required">
[4a91abc]122 <xref linkend="cmake"/>,
123 <xref linkend="fontconfig"/>, and
[c0bc0a9]124 &gobject-introspection;
[e0fc156]125 </para>
[d931c7f]126
[cf1a2b8]127 <bridgehead renderas="sect4">Recommended</bridgehead>
[2511f83]128 <para role="recommended">
[6bcedc93]129 <xref linkend="boost"/>,
[8d32ac9]130 <xref linkend="cairo"/>,
[70f95334]131 <xref linkend="gpgme"/>,
[905e8ca]132 <xref linkend="lcms2"/>,
[a25146f]133 <xref linkend="libjpeg"/>,
[c480c33]134 <xref linkend="libpng"/>,
[70f95334]135 <xref linkend="libtiff"/>,
[65bce57f]136 <xref linkend="nss"/>,
137 <xref linkend="openjpeg2"/>, and
[a43ab15]138 <xref linkend="qt6"/>
[f806bbf2]139 (required for PDF support in <xref role="nodep" linkend="okular"/>)
[cf1a2b8]140 </para>
141
[5474306]142 <bridgehead renderas="sect4">Optional</bridgehead>
[2511f83]143 <para role="optional">
144 <xref linkend="curl"/>,
[140a74cd]145 <xref linkend="gdk-pixbuf"/>,
[538d8db]146 <xref linkend="git"/> (for downloading test files),
[8c8fcaa7]147 <xref linkend="gtk-doc"/>,
[70f95334]148 <xref linkend="gtk3"/>, and
[a43ab15]149 &qt5-deps;
[2511f83]150 </para>
[1039de3]151
[5474306]152 </sect2>
153
154 <sect2 role="installation">
155 <title>Installation of Poppler</title>
156
[5dab7b65]157 <para>
[a43ab15]158 First, conditionalize C++20 only code to fix non C++20 builds that
159 don't use the affected methods.
160 </para>
161
162<screen><userinput>sed -e '/::starts/i #if __cplusplus >= 202002L'\
163 -e '/::ends/a #endif' \
164 -i goo/GooString.h</userinput></screen>
165
166 <para>
167 Now, install <application>Poppler</application> by running the following
[5dab7b65]168 commands:
169 </para>
170
[140a74cd]171<screen><userinput>mkdir build &amp;&amp;
172cd build &amp;&amp;
173
174cmake -DCMAKE_BUILD_TYPE=Release \
175 -DCMAKE_INSTALL_PREFIX=/usr \
176 -DTESTDATADIR=$PWD/testfiles \
[a43ab15]177 -DENABLE_QT5=OFF \
[034643f]178 -DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
179 .. &amp;&amp;
[5dab7b65]180make</userinput></screen>
181
[697c45ec]182 <para>
183 In order to run the test suite, some testcases are needed and can
184 be obtained only from a git repository. The command to download
185 them is:
[8bb50b80]186<command>git clone --depth 1 https://gitlab.freedesktop.org/poppler/test.git testfiles</command>.
[8558044]187 Then issue: <command>LC_ALL=en_US.UTF-8 make test</command>.
[697c45ec]188 </para>
[8aee9eb]189
[5dab7b65]190 <para>
191 Now, as the <systemitem class="username">root</systemitem> user:
192 </para>
193
[93f15e1]194<screen role="root"><userinput>make install</userinput></screen>
[8558044]195
[8aee9eb]196 <para>
[4881073]197 To install the documentation, run the following commands as
198 <systemitem class="username">root</systemitem>:
[8aee9eb]199 </para>
200
[5eafafd6]201<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/poppler-&poppler-version; &amp;&amp;
[55781c2]202cp -vr ../glib/reference/html /usr/share/doc/poppler-&poppler-version;</userinput></screen>
[d931c7f]203
[5dab7b65]204<!-- ==== Poppler Data ====== -->
205 <bridgehead renderas="sect3">Poppler Data</bridgehead>
206
[2511f83]207 <para>
208 If you downloaded the additional encoding data package, install it by
[dac5077]209 issuing the following commands:
[2511f83]210 </para>
[2c06b85]211
[55781c2]212<screen><userinput>tar -xf ../../poppler-data-&poppler-data-version;.tar.gz &amp;&amp;
[2c06b85]213cd poppler-data-&poppler-data-version;</userinput></screen>
214
[2511f83]215 <para>
216 Now, as the <systemitem class="username">root</systemitem> user:
217 </para>
[d931c7f]218
219<screen role="root"><userinput>make prefix=/usr install</userinput></screen>
[0c7d410]220
[5474306]221 </sect2>
222
223 <sect2 role="commands">
224 <title>Command Explanations</title>
225
[da8baac5]226 <para>
[538d8db]227 <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used
[8558044]228 to apply a higher level of compiler optimizations.
[2511f83]229 </para>
[cf1a2b8]230
[78c7ea98]231 <para>
[a82b4c61]232 <parameter>-DTESTDATADIR=$PWD/testfiles</parameter>: Tells the test
[77a6d25]233 programs where the auxiliary files are located.
[78c7ea98]234 </para>
[a43ab15]235<!--
[65bce57f]236 <para>
[a43ab15]237 <parameter>-DENABLE_QT5=OFF</parameter>: This switch is needed to
238 prevent an error when Qt5 is not installed. Remove it if you
[4de66bc7]239 have installed <xref linkend="qt6" role="nodep"/>.
[65bce57f]240 </para>
[a43ab15]241-->
[538d8db]242 <para>
[a82b4c61]243 <parameter>-DENABLE_UNSTABLE_API_ABI_HEADERS=ON</parameter>: Installs some old
[9ade54a3]244 <application>Xpdf</application> headers required by certain programs.
245 <!--(e.g. <application>Inkscape</application>).-->
[538d8db]246 </para>
[a82b4c61]247
[9f11d7f]248 <para>
[8558044]249 <option>-DENABLE_GTK_DOC=ON</option>: Use this parameter if
[a560ac8]250 GTK-Doc <!--and Pygments--> is installed and you wish to rebuild and
251 install the API documentation.
[2cd6717]252 </para>
[f95e1c8d]253
[df96e92]254 <para>
255 <option>-DENABLE_QT5=OFF</option>: Use this parameter if
256 &qt5-deps; is not installed.
257 </para>
258
[6bcedc93]259 <para>
260 <option>-DENABLE_BOOST=OFF</option>: Use this parameter if you have
261 not installed <application>boost</application> (the Splash backend for
262 Qt5 recommends boost).
263 </para>
264
[70f95334]265 <para>
266 <option>-DENABLE_NSS3=OFF</option>: Use this parameter if you have
267 not installed <application>nss</application>.
268 </para>
269
270 <para>
271 <option>-DENABLE_GPGME=OFF</option>: Use this parameter if you have
272 not installed <application>gpgme</application>.
273 </para>
274
275 <para>
276 <option>-DENABLE_LIBTIFF=OFF</option>: Use this parameter if you have
277 not installed <application>libtiff</application>.
278 </para>
279
[78c7ea98]280 <para>
[a82b4c61]281 <command>LC_ALL=en_US.UTF-8 make test</command>: Runs the test suite.
[da8baac5]282 The environment variable LC_ALL=en_US.UTF-8 is only needed if the
[78c7ea98]283 default locale does not include UTF-8.
284 </para>
285
[5474306]286 </sect2>
287
288 <sect2 role="content">
289 <title>Contents</title>
290
291 <segmentedlist>
292 <segtitle>Installed Programs</segtitle>
293 <segtitle>Installed Libraries</segtitle>
294 <segtitle>Installed Directories</segtitle>
295
296 <seglistitem>
[2511f83]297 <seg>
[8558044]298 pdfattach, pdfdetach, pdffonts, pdfimages, pdfinfo, pdfseparate,
[ab68492]299 pdfsig, pdftocairo, pdftohtml, pdftoppm, pdftops, pdftotext, and
[140a74cd]300 pdfunite
[2511f83]301 </seg>
302 <seg>
[f3429309]303 libpoppler.so,
[8538618]304 libpoppler-cpp.so,
[c4c38247]305 libpoppler-glib.so,
306 libpoppler-qt5.so, and
307 (optionally) libpoppler-qt6.so
[2511f83]308 </seg>
309 <seg>
[55781c2]310 /usr/include/poppler,
311 /usr/share/poppler, and
312 /usr/share/doc/poppler-&poppler-version;
[2511f83]313 </seg>
[5474306]314 </seglistitem>
315 </segmentedlist>
316
317 <variablelist>
318 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
319 <?dbfo list-presentation="list"?>
320 <?dbhtml list-presentation="table"?>
321
[972729e]322 <varlistentry id="pdfattach">
323 <term><command>pdfattach</command></term>
324 <listitem>
325 <para>
[4c24eb0a]326 adds a new embedded file to an existing PDF file
[972729e]327 </para>
328 <indexterm zone="poppler pdfattach">
329 <primary sortas="b-pdfattach">pdfattach</primary>
330 </indexterm>
331 </listitem>
[8558044]332 </varlistentry>
[972729e]333
[95b1905]334 <varlistentry id="pdfdetach">
335 <term><command>pdfdetach</command></term>
336 <listitem>
337 <para>
[4c24eb0a]338 lists or extracts embedded files from PDF files
[95b1905]339 </para>
340 <indexterm zone="poppler pdfdetach">
341 <primary sortas="b-pdfdetach">pdfdetach</primary>
342 </indexterm>
343 </listitem>
[0d7900a]344 </varlistentry>
345
[2d1ea57b]346 <varlistentry id="pdffonts">
[a5dfefb2]347 <term><command>pdffonts</command></term>
348 <listitem>
[2511f83]349 <para>
350 lists the fonts used in a PDF file along with various information
[4c24eb0a]351 for each font
[2511f83]352 </para>
[a5dfefb2]353 <indexterm zone="poppler pdffonts">
354 <primary sortas="b-pdffonts">pdffonts</primary>
355 </indexterm>
356 </listitem>
357 </varlistentry>
358
[2d1ea57b]359 <varlistentry id="pdfimages">
[a5dfefb2]360 <term><command>pdfimages</command></term>
361 <listitem>
[2511f83]362 <para>
[4c24eb0a]363 saves images from a PDF file as PPM, PBM, or JPEG files
[2511f83]364 </para>
[a5dfefb2]365 <indexterm zone="poppler pdfimages">
366 <primary sortas="b-pdfimages">pdfimages</primary>
367 </indexterm>
368 </listitem>
369 </varlistentry>
370
[2d1ea57b]371 <varlistentry id="pdfinfo">
[a5dfefb2]372 <term><command>pdfinfo</command></term>
373 <listitem>
[2511f83]374 <para>
375 prints the contents of the 'Info' dictionary (plus some other useful
[4c24eb0a]376 information) from a PDF file
[2511f83]377 </para>
[a5dfefb2]378 <indexterm zone="poppler pdfinfo">
379 <primary sortas="b-pdfinfo">pdfinfo</primary>
380 </indexterm>
381 </listitem>
382 </varlistentry>
383
384 <varlistentry id="pdfseparate">
385 <term><command>pdfseparate</command></term>
386 <listitem>
[2511f83]387 <para>
[4c24eb0a]388 extracts single pages from a PDF file
[2511f83]389 </para>
[a5dfefb2]390 <indexterm zone="poppler pdfseparate">
391 <primary sortas="b-pdseparate">pdfseparate</primary>
392 </indexterm>
393 </listitem>
394 </varlistentry>
395
[697c45ec]396 <varlistentry id="pdfsig">
397 <term><command>pdfsig</command></term>
398 <listitem>
399 <para>
[4c24eb0a]400 verifies the digital signatures in a PDF document
[697c45ec]401 </para>
402 <indexterm zone="poppler pdfsig">
403 <primary sortas="b-pdseparate">pdfsig</primary>
404 </indexterm>
405 </listitem>
406 </varlistentry>
407
[a5dfefb2]408 <varlistentry id="pdftocairo">
409 <term><command>pdftocairo</command></term>
410 <listitem>
[2511f83]411 <para>
412 converts a PDF file to one of several formats (PNG, JPEG, PDF, PS,
[4c24eb0a]413 EPS, SVG) using the cairo output device of the poppler library
[2511f83]414 </para>
[a5dfefb2]415 <indexterm zone="poppler pdftocairo">
416 <primary sortas="b-pdftocairo">pdftocairo</primary>
417 </indexterm>
418 </listitem>
419 </varlistentry>
420
421 <varlistentry id="pdftohtml">
422 <term><command>pdftohtml</command></term>
423 <listitem>
[2511f83]424 <para>
[4c24eb0a]425 converts a PDF file to HTML
[2511f83]426 </para>
[a5dfefb2]427 <indexterm zone="poppler pdftohtml">
428 <primary sortas="b-pdftohtml">pdftohtml</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
432
[2d1ea57b]433 <varlistentry id="pdftoppm">
[a5dfefb2]434 <term><command>pdftoppm</command></term>
435 <listitem>
[2511f83]436 <para>
[4c24eb0a]437 converts PDF files to PBM, PGM and PPM formats
[2511f83]438 </para>
[a5dfefb2]439 <indexterm zone="poppler pdftoppm">
440 <primary sortas="b-pdftoppm">pdftoppm</primary>
441 </indexterm>
442 </listitem>
443 </varlistentry>
444
[2d1ea57b]445 <varlistentry id="pdftops">
[a5dfefb2]446 <term><command>pdftops</command></term>
447 <listitem>
[2511f83]448 <para>
[4c24eb0a]449 converts PDF files to Postscript format
[2511f83]450 </para>
[a5dfefb2]451 <indexterm zone="poppler pdftops">
452 <primary sortas="b-pdftops">pdftops</primary>
453 </indexterm>
454 </listitem>
455 </varlistentry>
456
[2d1ea57b]457 <varlistentry id="pdftotext">
[a5dfefb2]458 <term><command>pdftotext</command></term>
459 <listitem>
[2511f83]460 <para>
[4c24eb0a]461 converts PDF files to plain text
[2511f83]462 </para>
[a5dfefb2]463 <indexterm zone="poppler pdftotext">
464 <primary sortas="b-pdftotext">pdftotext</primary>
465 </indexterm>
466 </listitem>
467 </varlistentry>
468
469 <varlistentry id="pdfunite">
470 <term><command>pdfunite</command></term>
471 <listitem>
[2511f83]472 <para>
473 merges several PDF files, in the order of their occurrence on the
[4c24eb0a]474 command line, to one PDF output file
[2511f83]475 </para>
[a5dfefb2]476 <indexterm zone="poppler pdfunite">
477 <primary sortas="b-pdfunite">pdfunite</primary>
478 </indexterm>
479 </listitem>
480 </varlistentry>
481
[5474306]482 <varlistentry id="libpoppler">
[6459a7e2]483 <term><filename class="libraryfile">libpoppler.so</filename></term>
[5474306]484 <listitem>
[2511f83]485 <para>
[4c24eb0a]486 contains the API functions to render PDF files
[2511f83]487 </para>
[5474306]488 <indexterm zone="poppler libpoppler">
[a5dfefb2]489 <primary sortas="c-libpoppler">libpoppler.so</primary>
[5474306]490 </indexterm>
491 </listitem>
492 </varlistentry>
493
[7d564a1]494 <varlistentry id="libpoppler-cpp">
[6459a7e2]495 <term><filename class="libraryfile">libpoppler-cpp.so</filename></term>
[7d564a1]496 <listitem>
[2511f83]497 <para>
[4c24eb0a]498 is a C++ backend for rendering PDF files
[2511f83]499 </para>
[7d564a1]500 <indexterm zone="poppler libpoppler-cpp">
[a5dfefb2]501 <primary sortas="c-libpoppler-cpp">libpoppler-cpp.so</primary>
[7d564a1]502 </indexterm>
503 </listitem>
504 </varlistentry>
505
[5474306]506 <varlistentry id="libpoppler-glib">
[6459a7e2]507 <term><filename class="libraryfile">libpoppler-glib.so</filename></term>
[5474306]508 <listitem>
[2511f83]509 <para>
510 is a wrapper library used to interface the PDF rendering functions
[4c24eb0a]511 with <application>GTK+</application>
[2511f83]512 </para>
[5474306]513 <indexterm zone="poppler libpoppler-glib">
[a5dfefb2]514 <primary sortas="c-libpoppler-glib">libpoppler-glib.so</primary>
[5474306]515 </indexterm>
516 </listitem>
517 </varlistentry>
518
[f3a6abc9]519 <varlistentry id="libpoppler-qt5">
520 <term><filename class="libraryfile">libpoppler-qt5.so</filename></term>
521 <listitem>
522 <para>
523 is a wrapper library used to interface the PDF rendering functions
[4c24eb0a]524 with <application>Qt</application>5
[f3a6abc9]525 </para>
526 <indexterm zone="poppler libpoppler-qt5">
527 <primary sortas="c-libpoppler-qt5">libpoppler-qt5.so</primary>
528 </indexterm>
529 </listitem>
530 </varlistentry>
531
[c4c38247]532 <varlistentry id="libpoppler-qt6">
533 <term><filename class="libraryfile">libpoppler-qt6.so</filename></term>
534 <listitem>
535 <para>
536 is a wrapper library used to interface the PDF rendering functions
537 with <application>Qt</application>6
538 </para>
539 <indexterm zone="poppler libpoppler-qt6">
540 <primary sortas="c-libpoppler-qt6">libpoppler-qt6.so</primary>
541 </indexterm>
542 </listitem>
543 </varlistentry>
544
[5474306]545 </variablelist>
[6459a7e2]546
[5474306]547 </sect2>
[6459a7e2]548
[5474306]549</sect1>
Note: See TracBrowser for help on using the repository browser.