source: general/graphlib/poppler.xml@ 613f9f7a

12.0 12.1 12.2 gimp3 ken/TL2024 ken/tuningfonts lazarus lxqt plabs/newcss python3.11 rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/for-12.3 xry111/llvm18 xry111/spidermonkey128
Last change on this file since 613f9f7a was b3867c5, checked in by Bruce Dubbs <bdubbs@…>, 14 months ago

Add qt5-components page.

Also create an ENTITY for qt5 or qt5-alternate and use that
to specify the qt5 dependenies.

The complete KF5/plasma packages should use the full qt5 build, but
the lxqt kf5/plasma components only need qt5-alternate.

  • Property mode set to 100644
File size: 16.5 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
[8dfc5c3]7 <!ENTITY poppler-download-http "https://poppler.freedesktop.org/poppler-&poppler-version;.tar.xz">
8 <!ENTITY poppler-download-ftp " ">
[1bf351d]9 <!ENTITY poppler-md5sum "088f9f2c6730f93a62aa6b46a6f0a6bf">
[faab1bd]10 <!ENTITY poppler-size "1.8 MB">
[1bf351d]11 <!ENTITY poppler-buildsize "91 MB (with Qt5 library and tests)">
12 <!ENTITY poppler-time "0.7 SBU (with parallelism=4, Qt5 library, and tests)">
[9ade54a3]13 <!-- Time increase might be due to git.freedesktop.org -->
[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
[b474dfa]43 &lfs113_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
124 <xref linkend="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"/>,
[905e8ca]131 <xref linkend="lcms2"/>,
[a25146f]132 <xref linkend="libjpeg"/>,
[c480c33]133 <xref linkend="libpng"/>,
[f95e1c8d]134 <xref linkend="nss"/>, and
135 <xref linkend="openjpeg2"/>
[cf1a2b8]136 </para>
137
[5474306]138 <bridgehead renderas="sect4">Optional</bridgehead>
[2511f83]139 <para role="optional">
140 <xref linkend="curl"/>,
[140a74cd]141 <xref linkend="gdk-pixbuf"/>,
[538d8db]142 <xref linkend="git"/> (for downloading test files),
[f6c28f48]143 <xref linkend="gpgme"/>,
[8c8fcaa7]144 <xref linkend="gtk-doc"/>,
[140a74cd]145 <xref linkend="gtk3"/>,
[c30de44]146 <xref linkend="libtiff"/>,
[b3867c5]147 &qt5-deps;
[c30de44]148 (required for PDF support in <xref role="nodep" linkend="okular5"/>), and
149 <ulink url="https://download.qt.io/archive/qt/">Qt-6.1 or later</ulink>.
150
[2511f83]151 </para>
[1039de3]152
[5474306]153 </sect2>
154
155 <sect2 role="installation">
156 <title>Installation of Poppler</title>
157
[49827ffd]158 <!-- remove when version is gtr 23.06.0 -->
159 <!-- missing incl is fixed upstream already -->
160 <para>
161 First add a missing include statement which will break compilation
162 on 32-bit systems:
163 </para>
164
165<screen><userinput>sed -e '/#include "GPGMECryptoSignBackend.h"/i#include &lt;config.h&gt;' \
166 -i poppler/GPGMECryptoSignBackend.cc</userinput></screen>
167 <!-- /remove -->
168
[5dab7b65]169 <para>
170 Install <application>Poppler</application> by running the following
171 commands:
172 </para>
173
[140a74cd]174<screen><userinput>mkdir build &amp;&amp;
175cd build &amp;&amp;
176
177cmake -DCMAKE_BUILD_TYPE=Release \
178 -DCMAKE_INSTALL_PREFIX=/usr \
179 -DTESTDATADIR=$PWD/testfiles \
[034643f]180 -DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
181 .. &amp;&amp;
[5dab7b65]182make</userinput></screen>
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>.
[8558044]189 Then issue: <command>LC_ALL=en_US.UTF-8 make test</command>.
[697c45ec]190 </para>
[8aee9eb]191
[5dab7b65]192 <para>
193 Now, as the <systemitem class="username">root</systemitem> user:
194 </para>
195
[93f15e1]196<screen role="root"><userinput>make install</userinput></screen>
[55781c2]197<!-- Seems makeinstall does the job now:
[93f15e1]198 <para>
[8558044]199 If you have Qt installed, again as the
[93f15e1]200 <systemitem class="username">root</systemitem> user:
201 </para>
[8558044]202
[93f15e1]203<screen role="root"><userinput>make -C qt5 install &amp;&amp;
[55781c2]204install -m644 poppler-qt5.pc /usr/lib/pkgconfig</userinput></screen>
205-->
[8aee9eb]206 <para>
[4881073]207 To install the documentation, run the following commands as
208 <systemitem class="username">root</systemitem>:
[8aee9eb]209 </para>
210
[5eafafd6]211<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/poppler-&poppler-version; &amp;&amp;
[55781c2]212cp -vr ../glib/reference/html /usr/share/doc/poppler-&poppler-version;</userinput></screen>
[d931c7f]213
[5dab7b65]214<!-- ==== Poppler Data ====== -->
215 <bridgehead renderas="sect3">Poppler Data</bridgehead>
216
[2511f83]217 <para>
218 If you downloaded the additional encoding data package, install it by
[dac5077]219 issuing the following commands:
[2511f83]220 </para>
[2c06b85]221
[55781c2]222<screen><userinput>tar -xf ../../poppler-data-&poppler-data-version;.tar.gz &amp;&amp;
[2c06b85]223cd poppler-data-&poppler-data-version;</userinput></screen>
224
[2511f83]225 <para>
226 Now, as the <systemitem class="username">root</systemitem> user:
227 </para>
[d931c7f]228
229<screen role="root"><userinput>make prefix=/usr install</userinput></screen>
[0c7d410]230
[5474306]231 </sect2>
232
233 <sect2 role="commands">
234 <title>Command Explanations</title>
235
[da8baac5]236 <para>
[538d8db]237 <parameter>-DCMAKE_BUILD_TYPE=Release</parameter>: This switch is used
[8558044]238 to apply a higher level of compiler optimizations.
[2511f83]239 </para>
[cf1a2b8]240
[78c7ea98]241 <para>
[a82b4c61]242 <parameter>-DTESTDATADIR=$PWD/testfiles</parameter>: Tells the test
[77a6d25]243 programs where the auxiliary files are located.
[78c7ea98]244 </para>
245
[538d8db]246 <para>
[a82b4c61]247 <parameter>-DENABLE_UNSTABLE_API_ABI_HEADERS=ON</parameter>: Installs some old
[9ade54a3]248 <application>Xpdf</application> headers required by certain programs.
249 <!--(e.g. <application>Inkscape</application>).-->
[538d8db]250 </para>
[a82b4c61]251
[5eafafd6]252<!-- This was broken for me - Bruce
[f95e1c8d]253 Still broken with 0.69.0 - Doug
[e162f3d]254 Seems to work with 0.73.0 - Pierre
[8558044]255 Works with 20.09.0 but without the
[e162f3d]256 sed -i '1s/python/&3/' make-glib-api-docs
257 and pygments is required - Thomas
258-->
[9f11d7f]259 <para>
[8558044]260 <option>-DENABLE_GTK_DOC=ON</option>: Use this parameter if
[a560ac8]261 GTK-Doc <!--and Pygments--> is installed and you wish to rebuild and
262 install the API documentation.
[2cd6717]263 </para>
[f95e1c8d]264
[6bcedc93]265 <para>
266 <option>-DENABLE_BOOST=OFF</option>: Use this parameter if you have
267 not installed <application>boost</application> (the Splash backend for
268 Qt5 recommends boost).
269 </para>
270
[78c7ea98]271 <para>
[a82b4c61]272 <command>LC_ALL=en_US.UTF-8 make test</command>: Runs the test suite.
[da8baac5]273 The environment variable LC_ALL=en_US.UTF-8 is only needed if the
[78c7ea98]274 default locale does not include UTF-8.
275 </para>
276
[5474306]277 </sect2>
278
279 <sect2 role="content">
280 <title>Contents</title>
281
282 <segmentedlist>
283 <segtitle>Installed Programs</segtitle>
284 <segtitle>Installed Libraries</segtitle>
285 <segtitle>Installed Directories</segtitle>
286
287 <seglistitem>
[2511f83]288 <seg>
[8558044]289 pdfattach, pdfdetach, pdffonts, pdfimages, pdfinfo, pdfseparate,
[ab68492]290 pdfsig, pdftocairo, pdftohtml, pdftoppm, pdftops, pdftotext, and
[140a74cd]291 pdfunite
[2511f83]292 </seg>
293 <seg>
[f3429309]294 libpoppler.so,
[8538618]295 libpoppler-cpp.so,
[c480c33]296 libpoppler-glib.so, and
[f3a6abc9]297 libpoppler-qt5.so
[2511f83]298 </seg>
299 <seg>
[55781c2]300 /usr/include/poppler,
301 /usr/share/poppler, and
302 /usr/share/doc/poppler-&poppler-version;
[2511f83]303 </seg>
[5474306]304 </seglistitem>
305 </segmentedlist>
306
307 <variablelist>
308 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
309 <?dbfo list-presentation="list"?>
310 <?dbhtml list-presentation="table"?>
311
[972729e]312 <varlistentry id="pdfattach">
313 <term><command>pdfattach</command></term>
314 <listitem>
315 <para>
[4c24eb0a]316 adds a new embedded file to an existing PDF file
[972729e]317 </para>
318 <indexterm zone="poppler pdfattach">
319 <primary sortas="b-pdfattach">pdfattach</primary>
320 </indexterm>
321 </listitem>
[8558044]322 </varlistentry>
[972729e]323
[95b1905]324 <varlistentry id="pdfdetach">
325 <term><command>pdfdetach</command></term>
326 <listitem>
327 <para>
[4c24eb0a]328 lists or extracts embedded files from PDF files
[95b1905]329 </para>
330 <indexterm zone="poppler pdfdetach">
331 <primary sortas="b-pdfdetach">pdfdetach</primary>
332 </indexterm>
333 </listitem>
[0d7900a]334 </varlistentry>
335
[2d1ea57b]336 <varlistentry id="pdffonts">
[a5dfefb2]337 <term><command>pdffonts</command></term>
338 <listitem>
[2511f83]339 <para>
340 lists the fonts used in a PDF file along with various information
[4c24eb0a]341 for each font
[2511f83]342 </para>
[a5dfefb2]343 <indexterm zone="poppler pdffonts">
344 <primary sortas="b-pdffonts">pdffonts</primary>
345 </indexterm>
346 </listitem>
347 </varlistentry>
348
[2d1ea57b]349 <varlistentry id="pdfimages">
[a5dfefb2]350 <term><command>pdfimages</command></term>
351 <listitem>
[2511f83]352 <para>
[4c24eb0a]353 saves images from a PDF file as PPM, PBM, or JPEG files
[2511f83]354 </para>
[a5dfefb2]355 <indexterm zone="poppler pdfimages">
356 <primary sortas="b-pdfimages">pdfimages</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
[2d1ea57b]361 <varlistentry id="pdfinfo">
[a5dfefb2]362 <term><command>pdfinfo</command></term>
363 <listitem>
[2511f83]364 <para>
365 prints the contents of the 'Info' dictionary (plus some other useful
[4c24eb0a]366 information) from a PDF file
[2511f83]367 </para>
[a5dfefb2]368 <indexterm zone="poppler pdfinfo">
369 <primary sortas="b-pdfinfo">pdfinfo</primary>
370 </indexterm>
371 </listitem>
372 </varlistentry>
373
374 <varlistentry id="pdfseparate">
375 <term><command>pdfseparate</command></term>
376 <listitem>
[2511f83]377 <para>
[4c24eb0a]378 extracts single pages from a PDF file
[2511f83]379 </para>
[a5dfefb2]380 <indexterm zone="poppler pdfseparate">
381 <primary sortas="b-pdseparate">pdfseparate</primary>
382 </indexterm>
383 </listitem>
384 </varlistentry>
385
[697c45ec]386 <varlistentry id="pdfsig">
387 <term><command>pdfsig</command></term>
388 <listitem>
389 <para>
[4c24eb0a]390 verifies the digital signatures in a PDF document
[697c45ec]391 </para>
392 <indexterm zone="poppler pdfsig">
393 <primary sortas="b-pdseparate">pdfsig</primary>
394 </indexterm>
395 </listitem>
396 </varlistentry>
397
[a5dfefb2]398 <varlistentry id="pdftocairo">
399 <term><command>pdftocairo</command></term>
400 <listitem>
[2511f83]401 <para>
402 converts a PDF file to one of several formats (PNG, JPEG, PDF, PS,
[4c24eb0a]403 EPS, SVG) using the cairo output device of the poppler library
[2511f83]404 </para>
[a5dfefb2]405 <indexterm zone="poppler pdftocairo">
406 <primary sortas="b-pdftocairo">pdftocairo</primary>
407 </indexterm>
408 </listitem>
409 </varlistentry>
410
411 <varlistentry id="pdftohtml">
412 <term><command>pdftohtml</command></term>
413 <listitem>
[2511f83]414 <para>
[4c24eb0a]415 converts a PDF file to HTML
[2511f83]416 </para>
[a5dfefb2]417 <indexterm zone="poppler pdftohtml">
418 <primary sortas="b-pdftohtml">pdftohtml</primary>
419 </indexterm>
420 </listitem>
421 </varlistentry>
422
[2d1ea57b]423 <varlistentry id="pdftoppm">
[a5dfefb2]424 <term><command>pdftoppm</command></term>
425 <listitem>
[2511f83]426 <para>
[4c24eb0a]427 converts PDF files to PBM, PGM and PPM formats
[2511f83]428 </para>
[a5dfefb2]429 <indexterm zone="poppler pdftoppm">
430 <primary sortas="b-pdftoppm">pdftoppm</primary>
431 </indexterm>
432 </listitem>
433 </varlistentry>
434
[2d1ea57b]435 <varlistentry id="pdftops">
[a5dfefb2]436 <term><command>pdftops</command></term>
437 <listitem>
[2511f83]438 <para>
[4c24eb0a]439 converts PDF files to Postscript format
[2511f83]440 </para>
[a5dfefb2]441 <indexterm zone="poppler pdftops">
442 <primary sortas="b-pdftops">pdftops</primary>
443 </indexterm>
444 </listitem>
445 </varlistentry>
446
[2d1ea57b]447 <varlistentry id="pdftotext">
[a5dfefb2]448 <term><command>pdftotext</command></term>
449 <listitem>
[2511f83]450 <para>
[4c24eb0a]451 converts PDF files to plain text
[2511f83]452 </para>
[a5dfefb2]453 <indexterm zone="poppler pdftotext">
454 <primary sortas="b-pdftotext">pdftotext</primary>
455 </indexterm>
456 </listitem>
457 </varlistentry>
458
459 <varlistentry id="pdfunite">
460 <term><command>pdfunite</command></term>
461 <listitem>
[2511f83]462 <para>
463 merges several PDF files, in the order of their occurrence on the
[4c24eb0a]464 command line, to one PDF output file
[2511f83]465 </para>
[a5dfefb2]466 <indexterm zone="poppler pdfunite">
467 <primary sortas="b-pdfunite">pdfunite</primary>
468 </indexterm>
469 </listitem>
470 </varlistentry>
471
[5474306]472 <varlistentry id="libpoppler">
[6459a7e2]473 <term><filename class="libraryfile">libpoppler.so</filename></term>
[5474306]474 <listitem>
[2511f83]475 <para>
[4c24eb0a]476 contains the API functions to render PDF files
[2511f83]477 </para>
[5474306]478 <indexterm zone="poppler libpoppler">
[a5dfefb2]479 <primary sortas="c-libpoppler">libpoppler.so</primary>
[5474306]480 </indexterm>
481 </listitem>
482 </varlistentry>
483
[7d564a1]484 <varlistentry id="libpoppler-cpp">
[6459a7e2]485 <term><filename class="libraryfile">libpoppler-cpp.so</filename></term>
[7d564a1]486 <listitem>
[2511f83]487 <para>
[4c24eb0a]488 is a C++ backend for rendering PDF files
[2511f83]489 </para>
[7d564a1]490 <indexterm zone="poppler libpoppler-cpp">
[a5dfefb2]491 <primary sortas="c-libpoppler-cpp">libpoppler-cpp.so</primary>
[7d564a1]492 </indexterm>
493 </listitem>
494 </varlistentry>
495
[5474306]496 <varlistentry id="libpoppler-glib">
[6459a7e2]497 <term><filename class="libraryfile">libpoppler-glib.so</filename></term>
[5474306]498 <listitem>
[2511f83]499 <para>
500 is a wrapper library used to interface the PDF rendering functions
[4c24eb0a]501 with <application>GTK+</application>
[2511f83]502 </para>
[5474306]503 <indexterm zone="poppler libpoppler-glib">
[a5dfefb2]504 <primary sortas="c-libpoppler-glib">libpoppler-glib.so</primary>
[5474306]505 </indexterm>
506 </listitem>
507 </varlistentry>
508
[f3a6abc9]509 <varlistentry id="libpoppler-qt5">
510 <term><filename class="libraryfile">libpoppler-qt5.so</filename></term>
511 <listitem>
512 <para>
513 is a wrapper library used to interface the PDF rendering functions
[4c24eb0a]514 with <application>Qt</application>5
[f3a6abc9]515 </para>
516 <indexterm zone="poppler libpoppler-qt5">
517 <primary sortas="c-libpoppler-qt5">libpoppler-qt5.so</primary>
518 </indexterm>
519 </listitem>
520 </varlistentry>
521
[5474306]522 </variablelist>
[6459a7e2]523
[5474306]524 </sect2>
[6459a7e2]525
[5474306]526</sect1>
Note: See TracBrowser for help on using the repository browser.