source: general/graphlib/poppler.xml@ 1edfc91

trunk
Last change on this file since 1edfc91 was 592fd6c2, checked in by Bruce Dubbs <bdubbs@…>, 2 days ago

Temporarily revert to poppler-24.09.0.

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