source: general/graphlib/poppler.xml@ a63b21e

trunk
Last change on this file since a63b21e was 2b211140, checked in by Bruce Dubbs <bdubbs@…>, 2 weeks ago

Update to poppler-24.09.0.

  • Property mode set to 100644
File size: 16.7 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 " ">
[2b211140]9 <!ENTITY poppler-md5sum "c4a92a7ee9cd8137c50273bcc5252646">
[faab1bd]10 <!ENTITY poppler-size "1.8 MB">
[925a939]11 <!ENTITY poppler-buildsize "76 MB (with Qt6 library; add 13 MB for tests)">
12 <!ENTITY poppler-time "0.9 SBU (with parallelism=4, tests, and Qt6 library)">
[a43ab15]13 <!-- For poppler 24.05.0 All 65 tests passed in 1.8 seconds -->
[162194f9]14 <!-- For poppler 24.06.0 One test, check_qt6_signature_basics, out of 65 tests
15 passed in 42 seconds -->
[8a1b4b52]16
[ba2138a]17 <!ENTITY poppler-data-version "0.4.12">
[e0fc156]18
[8dfc5c3]19 <!ENTITY poppler-data-download-http "https://poppler.freedesktop.org/poppler-data-&poppler-data-version;.tar.gz">
[e5a4b48]20 <!ENTITY poppler-data-md5sum "67ee4a40aa830b1f6e2560ce5f6471ba">
[758f3f6]21 <!ENTITY poppler-data-size "4.3 MB">
[a560ac8]22 <!ENTITY poppler-data-buildsize "26 MB">
[da8baac5]23 <!ENTITY poppler-data-time "less than 0.1 SBU">
[5474306]24]>
25
26<sect1 id="poppler" xreflabel="Poppler-&poppler-version;">
27 <?dbhtml filename="poppler.html"?>
28
29
30 <title>Poppler-&poppler-version;</title>
31
32 <indexterm zone="poppler">
33 <primary sortas="a-Poppler">Poppler</primary>
34 </indexterm>
35
36 <sect2 role="package">
37 <title>Introduction to Poppler</title>
38
[2511f83]39 <para>
40 The <application>Poppler</application> package contains a PDF rendering
41 library and command line tools used to manipulate PDF files. This is
42 useful for providing PDF rendering functionality as a shared library.
43 </para>
[5474306]44
[41a19c4]45 &lfs122_checked;
[49f7d8b]46
[5474306]47 <bridgehead renderas="sect3">Package Information</bridgehead>
48 <itemizedlist spacing="compact">
49 <listitem>
[2511f83]50 <para>
51 Download (HTTP): <ulink url="&poppler-download-http;"/>
52 </para>
[5474306]53 </listitem>
54 <listitem>
[2511f83]55 <para>
56 Download (FTP): <ulink url="&poppler-download-ftp;"/>
57 </para>
[5474306]58 </listitem>
59 <listitem>
[2511f83]60 <para>
61 Download MD5 sum: &poppler-md5sum;
62 </para>
[5474306]63 </listitem>
64 <listitem>
[2511f83]65 <para>
66 Download size: &poppler-size;
67 </para>
[5474306]68 </listitem>
69 <listitem>
[2511f83]70 <para>
71 Estimated disk space required: &poppler-buildsize;
72 </para>
[5474306]73 </listitem>
74 <listitem>
[2511f83]75 <para>
76 Estimated build time: &poppler-time;
77 </para>
[5474306]78 </listitem>
79 </itemizedlist>
80
[d931c7f]81 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[8a1b4b52]82
[d931c7f]83 <itemizedlist spacing="compact">
[8a1b4b52]84 <title>Poppler Encoding Data</title>
85 <listitem>
[2511f83]86 <para>
87 Download (HTTP): <ulink url="&poppler-data-download-http;"/>
88 </para>
[8a1b4b52]89 </listitem>
90 <listitem>
[2511f83]91 <para>
92 Download MD5 sum: &poppler-data-md5sum;
93 </para>
[8a1b4b52]94 </listitem>
[d931c7f]95 <listitem>
[2511f83]96 <para>
97 Download size: &poppler-data-size;
98 </para>
[d931c7f]99 </listitem>
[da8baac5]100 <listitem>
101 <para>
102 Estimated disk space required: &poppler-data-buildsize;
103 </para>
104 </listitem>
105 <listitem>
106 <para>
107 Estimated build time: &poppler-data-time;
108 </para>
109 </listitem>
[d931c7f]110 </itemizedlist>
111
[2511f83]112 <para>
113 The additional package consists of encoding files for use with
114 <application>Poppler</application>. The encoding files are optional and
115 <application>Poppler</application> will automatically read them if they
116 are present. When installed, they enable
117 <application>Poppler</application> to render CJK and Cyrillic properly.
118 </para>
119
[5474306]120 <bridgehead renderas="sect3">Poppler Dependencies</bridgehead>
121
[d931c7f]122 <bridgehead renderas="sect4">Required</bridgehead>
[e0fc156]123 <para role="required">
[4a91abc]124 <xref linkend="cmake"/>,
125 <xref linkend="fontconfig"/>, and
[c0bc0a9]126 &gobject-introspection;
[e0fc156]127 </para>
[d931c7f]128
[cf1a2b8]129 <bridgehead renderas="sect4">Recommended</bridgehead>
[2511f83]130 <para role="recommended">
[6bcedc93]131 <xref linkend="boost"/>,
[8d32ac9]132 <xref linkend="cairo"/>,
[70f95334]133 <xref linkend="gpgme"/>,
[905e8ca]134 <xref linkend="lcms2"/>,
[a25146f]135 <xref linkend="libjpeg"/>,
[c480c33]136 <xref linkend="libpng"/>,
[70f95334]137 <xref linkend="libtiff"/>,
[65bce57f]138 <xref linkend="nss"/>,
139 <xref linkend="openjpeg2"/>, and
[a43ab15]140 <xref linkend="qt6"/>
[f806bbf2]141 (required for PDF support in <xref role="nodep" linkend="okular"/>)
[cf1a2b8]142 </para>
143
[5474306]144 <bridgehead renderas="sect4">Optional</bridgehead>
[2511f83]145 <para role="optional">
146 <xref linkend="curl"/>,
[140a74cd]147 <xref linkend="gdk-pixbuf"/>,
[538d8db]148 <xref linkend="git"/> (for downloading test files),
[0e16b36]149 <xref linkend="gtk-doc"/> and
150 <xref linkend="gtk3"/>
[2511f83]151 </para>
[1039de3]152
[5474306]153 </sect2>
154
155 <sect2 role="installation">
156 <title>Installation of Poppler</title>
[1db25513]157<!--
[5dab7b65]158 <para>
[a43ab15]159 First, conditionalize C++20 only code to fix non C++20 builds that
160 don't use the affected methods.
161 </para>
162
163<screen><userinput>sed -e '/::starts/i #if __cplusplus >= 202002L'\
164 -e '/::ends/a #endif' \
165 -i goo/GooString.h</userinput></screen>
[1db25513]166-->
[a43ab15]167 <para>
168 Now, install <application>Poppler</application> by running the following
[5dab7b65]169 commands:
170 </para>
171
[140a74cd]172<screen><userinput>mkdir build &amp;&amp;
173cd build &amp;&amp;
174
[1c92d68a]175cmake -D CMAKE_BUILD_TYPE=Release \
176 -D CMAKE_INSTALL_PREFIX=/usr \
177 -D TESTDATADIR=$PWD/testfiles \
178 -D ENABLE_QT5=OFF \
179 -D ENABLE_UNSTABLE_API_ABI_HEADERS=ON \
180 -G Ninja .. &amp;&amp;
181ninja</userinput></screen>
[5dab7b65]182
[697c45ec]183 <para>
184 In order to run the test suite, some testcases are needed and can
185 be obtained only from a git repository. The command to download
186 them is:
[8bb50b80]187<command>git clone --depth 1 https://gitlab.freedesktop.org/poppler/test.git testfiles</command>.
[1c92d68a]188 Then issue: <command>LC_ALL=en_US.UTF-8 ninja test</command>.
[162194f9]189 One subtest of check_qt6_signature_basics is known to fail.
[697c45ec]190 </para>
[8aee9eb]191
[5dab7b65]192 <para>
193 Now, as the <systemitem class="username">root</systemitem> user:
194 </para>
195
[1c92d68a]196<screen role="root"><userinput>ninja install</userinput></screen>
[8558044]197
[8aee9eb]198 <para>
[4881073]199 To install the documentation, run the following commands as
200 <systemitem class="username">root</systemitem>:
[8aee9eb]201 </para>
202
[5eafafd6]203<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/poppler-&poppler-version; &amp;&amp;
[55781c2]204cp -vr ../glib/reference/html /usr/share/doc/poppler-&poppler-version;</userinput></screen>
[d931c7f]205
[5dab7b65]206<!-- ==== Poppler Data ====== -->
207 <bridgehead renderas="sect3">Poppler Data</bridgehead>
208
[2511f83]209 <para>
210 If you downloaded the additional encoding data package, install it by
[dac5077]211 issuing the following commands:
[2511f83]212 </para>
[2c06b85]213
[55781c2]214<screen><userinput>tar -xf ../../poppler-data-&poppler-data-version;.tar.gz &amp;&amp;
[2c06b85]215cd poppler-data-&poppler-data-version;</userinput></screen>
216
[2511f83]217 <para>
218 Now, as the <systemitem class="username">root</systemitem> user:
219 </para>
[d931c7f]220
[f7b8fb8c]221<screen role="root"><userinput>make prefix=/usr install</userinput></screen>
[0c7d410]222
[5474306]223 </sect2>
224
225 <sect2 role="commands">
226 <title>Command Explanations</title>
227
[da8baac5]228 <para>
[1c92d68a]229 <parameter>-D CMAKE_BUILD_TYPE=Release</parameter>: This switch is used
[8558044]230 to apply a higher level of compiler optimizations.
[2511f83]231 </para>
[cf1a2b8]232
[78c7ea98]233 <para>
[1c92d68a]234 <parameter>-D TESTDATADIR=$PWD/testfiles</parameter>: Tells the test
[77a6d25]235 programs where the auxiliary files are located.
[78c7ea98]236 </para>
[1c92d68a]237
[65bce57f]238 <para>
[1c92d68a]239 <parameter>-D ENABLE_QT5=OFF</parameter>: This switch is needed to
[0e16b36]240 prevent an error when Qt5 is not installed.
[65bce57f]241 </para>
[1c92d68a]242
[538d8db]243 <para>
[1c92d68a]244 <parameter>-D ENABLE_UNSTABLE_API_ABI_HEADERS=ON</parameter>: Installs some old
[9ade54a3]245 <application>Xpdf</application> headers required by certain programs.
246 <!--(e.g. <application>Inkscape</application>).-->
[538d8db]247 </para>
[a82b4c61]248
[9f11d7f]249 <para>
[1c92d68a]250 <option>-D ENABLE_GTK_DOC=ON</option>: Use this parameter if
[a560ac8]251 GTK-Doc <!--and Pygments--> is installed and you wish to rebuild and
252 install the API documentation.
[2cd6717]253 </para>
[f95e1c8d]254
[df96e92]255 <para>
[1c92d68a]256 <option>-D ENABLE_QT6=OFF</option>: Use this parameter if
257 <xref linkend='qt6'/> is not installed.
[df96e92]258 </para>
259
[6bcedc93]260 <para>
[1c92d68a]261 <option>-D ENABLE_BOOST=OFF</option>: Use this parameter if you have
[6bcedc93]262 not installed <application>boost</application> (the Splash backend for
263 Qt5 recommends boost).
264 </para>
265
[70f95334]266 <para>
[1c92d68a]267 <option>-D ENABLE_NSS3=OFF</option>: Use this parameter if you have
[70f95334]268 not installed <application>nss</application>.
269 </para>
270
271 <para>
[1c92d68a]272 <option>-D ENABLE_GPGME=OFF</option>: Use this parameter if you have
[70f95334]273 not installed <application>gpgme</application>.
274 </para>
275
276 <para>
[1c92d68a]277 <option>-D ENABLE_LIBTIFF=OFF</option>: Use this parameter if you have
[70f95334]278 not installed <application>libtiff</application>.
279 </para>
280
[78c7ea98]281 <para>
[1c92d68a]282 <command>LC_ALL=en_US.UTF-8 ninja test</command>: Runs the test suite.
[da8baac5]283 The environment variable LC_ALL=en_US.UTF-8 is only needed if the
[78c7ea98]284 default locale does not include UTF-8.
285 </para>
286
[5474306]287 </sect2>
288
289 <sect2 role="content">
290 <title>Contents</title>
291
292 <segmentedlist>
293 <segtitle>Installed Programs</segtitle>
294 <segtitle>Installed Libraries</segtitle>
295 <segtitle>Installed Directories</segtitle>
296
297 <seglistitem>
[2511f83]298 <seg>
[8558044]299 pdfattach, pdfdetach, pdffonts, pdfimages, pdfinfo, pdfseparate,
[ab68492]300 pdfsig, pdftocairo, pdftohtml, pdftoppm, pdftops, pdftotext, and
[140a74cd]301 pdfunite
[2511f83]302 </seg>
303 <seg>
[f3429309]304 libpoppler.so,
[8538618]305 libpoppler-cpp.so,
[c4c38247]306 libpoppler-glib.so,
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
[c4c38247]519 <varlistentry id="libpoppler-qt6">
520 <term><filename class="libraryfile">libpoppler-qt6.so</filename></term>
521 <listitem>
522 <para>
523 is a wrapper library used to interface the PDF rendering functions
524 with <application>Qt</application>6
525 </para>
526 <indexterm zone="poppler libpoppler-qt6">
527 <primary sortas="c-libpoppler-qt6">libpoppler-qt6.so</primary>
528 </indexterm>
529 </listitem>
530 </varlistentry>
531
[5474306]532 </variablelist>
[6459a7e2]533
[5474306]534 </sect2>
[6459a7e2]535
[5474306]536</sect1>
Note: See TracBrowser for help on using the repository browser.