source: general/graphlib/poppler.xml@ f3429309

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 f3429309 was f3429309, checked in by Fernando de Oliveira <fernando@…>, 8 years ago
  • mupdf-1.8: minor reformat.
  • removing spaces from EOL, from Denis Mugnier.
  • BLFS/trunk/BOOK/kde/add/kdepim-runtime.xml: needed to fix to validate the book. One chunck had been removed. Bruce, please check if it is OK, now.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16645 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
[da8baac5]7 <!ENTITY poppler-download-http "http://poppler.freedesktop.org/poppler-&poppler-version;.tar.xz">
[8a1b4b52]8 <!ENTITY poppler-download-ftp " ">
[8538618]9 <!ENTITY poppler-md5sum "c635e1742202cbbd9182cb0255d95652">
[da8baac5]10 <!ENTITY poppler-size "1.6 MB (additional 9 MB for the test suite)">
[8538618]11 <!ENTITY poppler-buildsize "293 MB (with Qt4 and Qt5 libraries, and tests)">
12 <!ENTITY poppler-time "2.0 SBU (with Qt4 and Qt5 libraries, and tests)">
[da8baac5]13
[8a1b4b52]14
[af21cbe2]15 <!ENTITY poppler-data-version "0.4.7">
[e0fc156]16
[da8baac5]17 <!ENTITY poppler-data-download-http "http://poppler.freedesktop.org/poppler-data-&poppler-data-version;.tar.gz">
[af21cbe2]18 <!ENTITY poppler-data-md5sum "636a8f2b9f6df9e7ced8ec0946961eaf">
[8a1b4b52]19 <!ENTITY poppler-data-size "4.0 MB">
[da8baac5]20 <!ENTITY poppler-data-buildsize "24 MB">
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 <sect1info>
[3ca3085]28 <othername>$LastChangedBy$</othername>
29 <date>$Date$</date>
[5474306]30 </sect1info>
31
32 <title>Poppler-&poppler-version;</title>
33
34 <indexterm zone="poppler">
35 <primary sortas="a-Poppler">Poppler</primary>
36 </indexterm>
37
38 <sect2 role="package">
39 <title>Introduction to Poppler</title>
40
[2511f83]41 <para>
42 The <application>Poppler</application> package contains a PDF rendering
43 library and command line tools used to manipulate PDF files. This is
44 useful for providing PDF rendering functionality as a shared library.
45 </para>
[5474306]46
[46db8b5]47 &lfs78_checked;
[49f7d8b]48
[5474306]49 <bridgehead renderas="sect3">Package Information</bridgehead>
50 <itemizedlist spacing="compact">
51 <listitem>
[2511f83]52 <para>
53 Download (HTTP): <ulink url="&poppler-download-http;"/>
54 </para>
[5474306]55 </listitem>
56 <listitem>
[2511f83]57 <para>
58 Download (FTP): <ulink url="&poppler-download-ftp;"/>
59 </para>
[5474306]60 </listitem>
61 <listitem>
[2511f83]62 <para>
63 Download MD5 sum: &poppler-md5sum;
64 </para>
[5474306]65 </listitem>
66 <listitem>
[2511f83]67 <para>
68 Download size: &poppler-size;
69 </para>
[5474306]70 </listitem>
71 <listitem>
[2511f83]72 <para>
73 Estimated disk space required: &poppler-buildsize;
74 </para>
[5474306]75 </listitem>
76 <listitem>
[2511f83]77 <para>
78 Estimated build time: &poppler-time;
79 </para>
[5474306]80 </listitem>
81 </itemizedlist>
82
[d931c7f]83 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[8a1b4b52]84
[d931c7f]85 <itemizedlist spacing="compact">
[8a1b4b52]86 <title>Poppler Encoding Data</title>
87 <listitem>
[2511f83]88 <para>
89 Download (HTTP): <ulink url="&poppler-data-download-http;"/>
90 </para>
[8a1b4b52]91 </listitem>
92 <listitem>
[2511f83]93 <para>
94 Download MD5 sum: &poppler-data-md5sum;
95 </para>
[8a1b4b52]96 </listitem>
[d931c7f]97 <listitem>
[2511f83]98 <para>
99 Download size: &poppler-data-size;
100 </para>
[d931c7f]101 </listitem>
[da8baac5]102 <listitem>
103 <para>
104 Estimated disk space required: &poppler-data-buildsize;
105 </para>
106 </listitem>
107 <listitem>
108 <para>
109 Estimated build time: &poppler-data-time;
110 </para>
111 </listitem>
[d931c7f]112 </itemizedlist>
113
[2511f83]114 <para>
115 The additional package consists of encoding files for use with
116 <application>Poppler</application>. The encoding files are optional and
117 <application>Poppler</application> will automatically read them if they
118 are present. When installed, they enable
119 <application>Poppler</application> to render CJK and Cyrillic properly.
120 </para>
121
[5474306]122 <bridgehead renderas="sect3">Poppler Dependencies</bridgehead>
123
[d931c7f]124 <bridgehead renderas="sect4">Required</bridgehead>
[e0fc156]125 <para role="required">
126 <xref linkend="fontconfig"/>
127 </para>
[d931c7f]128
[cf1a2b8]129 <bridgehead renderas="sect4">Recommended</bridgehead>
[2511f83]130 <para role="recommended">
[8d32ac9]131 <xref linkend="cairo"/>,
[a25146f]132 <xref linkend="libjpeg"/>,
133 <xref linkend="libpng"/>, and
134 <xref linkend="openjpeg"/>
[cf1a2b8]135 </para>
136
[5474306]137 <bridgehead renderas="sect4">Optional</bridgehead>
[2511f83]138 <para role="optional">
139 <xref linkend="curl"/>,
[f6c00d7b]140 <xref linkend="gobject-introspection"/>,
[8c8fcaa7]141 <xref linkend="gtk-doc"/>,
[2511f83]142 <xref linkend="gtk2"/>,
143 <xref linkend="lcms"/> or <xref linkend="lcms2"/>,
144 <xref linkend="libtiff"/>,
[9b6d8fc]145 <xref linkend="openjpeg2"/>
[a25146f]146 (preference is for OpenJPEG1, due to regressions with OpenJPEG2),
[7af92fe5]147 <xref linkend="qt4"/> (the <filename>libpoppler-qt4.so</filename> library
[4529754]148 is needed for PDF support in <application>Okular</application>), and
[f3a6abc9]149 <xref linkend="qt5"/>
[2511f83]150 </para>
[1039de3]151
[2511f83]152 <para condition="html" role="usernotes">
153 User Notes: <ulink url="&blfs-wiki;/poppler"/>
154 </para>
[5474306]155 </sect2>
156
157 <sect2 role="installation">
158 <title>Installation of Poppler</title>
159
[b1a8aad7]160 <para>
[da8baac5]161 In order to optionally run the test suite, an additional download using
162 <xref linkend="git"/> is necessary.
[b1a8aad7]163 </para>
164
[78c7ea98]165<screen><userinput>rm -rf testfiles &amp;&amp;
166git clone git://git.freedesktop.org/git/poppler/test testfiles</userinput></screen>
[b1a8aad7]167
[4881073]168 <note><para>
[a6ff6760]169
170 This package can be optionally built with support for only one version of
171 Qt4 or Qt5. If you have only one, no modification is necessary. If both
172 are installed, and you wish support for only one, before executing the
173 <command>configure</command> command given below, use this command to
[da8baac5]174 select Qt4:
175
176 <screen><userinput>source /usr/bin/setqt4</userinput></screen>
[38489d2e]177
[a6ff6760]178 or this to select Qt5:
[a544789]179
[da8baac5]180 <screen><userinput>source /usr/bin/setqt5</userinput></screen>
[4881073]181 </para></note>
[5dab7b65]182
183 <para>
184 Install <application>Poppler</application> by running the following
185 commands:
186 </para>
187
[da8baac5]188<screen><userinput>MOCQT4=$QT4DIR/bin/moc \
189MOCQT5=$QT5DIR/bin/moc \
190./configure --prefix=/usr \
191 --sysconfdir=/etc \
192 --disable-static \
193 --enable-build-type=release \
194 --enable-cmyk \
195 --enable-xpdf-headers \
[78c7ea98]196 --with-testdatadir=$PWD/testfiles &amp;&amp;
[5dab7b65]197make</userinput></screen>
198
[8aee9eb]199 <para>
[78c7ea98]200 To test the results, issue: <command>LC_ALL=en_US.UTF-8 make check</command>.
[8aee9eb]201 </para>
202
[5dab7b65]203 <para>
204 Now, as the <systemitem class="username">root</systemitem> user:
205 </para>
206
207<screen role="root"><userinput>make install</userinput></screen>
208
[8aee9eb]209 <para>
[4881073]210 To install the documentation, run the following commands as
211 <systemitem class="username">root</systemitem>:
[8aee9eb]212 </para>
213
[2a5ad24]214<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/poppler-&poppler-version; &amp;&amp;
215install -v -m644 README* /usr/share/doc/poppler-&poppler-version; &amp;&amp;
216cp -vr glib/reference/html /usr/share/doc/poppler-&poppler-version;</userinput></screen>
[d931c7f]217
[5dab7b65]218<!-- ==== Poppler Data ====== -->
219 <bridgehead renderas="sect3">Poppler Data</bridgehead>
220
[2511f83]221 <para>
222 If you downloaded the additional encoding data package, install it by
[8aee9eb]223 issuing the following commands as the
224 <systemitem class="username">root</systemitem> user:
[2511f83]225 </para>
[2c06b85]226
227<screen><userinput>tar -xf ../poppler-data-&poppler-data-version;.tar.gz &amp;&amp;
228cd poppler-data-&poppler-data-version;</userinput></screen>
229
[2511f83]230 <para>
231 Now, as the <systemitem class="username">root</systemitem> user:
232 </para>
[d931c7f]233
234<screen role="root"><userinput>make prefix=/usr install</userinput></screen>
[0c7d410]235
[5474306]236 </sect2>
237
238 <sect2 role="commands">
239 <title>Command Explanations</title>
240
[a6ff6760]241 <para>
242 <envar>MOCQT4=$QT4DIR/bin/moc</envar> and
243 <envar>MOCQT5=$QT5DIR/bin/moc</envar>:
244 These environment variables are necessary, for linking with the two Qt
245 versions, if both are installed. If only one Qt version is installed or
246 you wish to link to only one version, you can remove them, although this
247 is not necessary.
248 </para>
249
[da8baac5]250 <para>
251 <parameter>--enable-build-type=release</parameter>: This switch is used
252 to apply a higher level of compiler optimizations. Other options are:
253 [<option>relwithdebinfo/debug/debugfull/profile</option>]
254 </para>
255
256 <para>
257 <parameter>--enable-cmyk</parameter>:
258 Include support for CMYK rasterization.
259 </para>
260
[2511f83]261 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
262 href="../../xincludes/static-libraries.xml"/>
[35e21bf]263
[2511f83]264 <para>
[19bcba7d]265 <parameter>--enable-xpdf-headers</parameter>: Install some old
[2511f83]266 <application>Xpdf</application> headers required by certain programs (e.g.
[6459a7e2]267 <application>Okular</application>, <application>LibreOffice</application>
[2511f83]268 and <application>Inkscape</application>).
269 </para>
[cf1a2b8]270
[78c7ea98]271 <para>
[19bcba7d]272 <parameter>--with-testdatadir=$PWD/testfiles</parameter>: Tell the test
[78c7ea98]273 programs where the auxillary files are located.
274 </para>
275
[9f11d7f]276 <para>
277 <option>--enable-libcurl</option>: Use libcurl for HTTP support.
278 </para>
279
[8c8fcaa7]280 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
281 href="../../xincludes/gtk-doc-rebuild.xml"/>
282
[78c7ea98]283 <para>
284 <command>LC_ALL=en_US.UTF-8 make check</command>: Run the test suite.
[da8baac5]285 The environment variable LC_ALL=en_US.UTF-8 is only needed if the
[78c7ea98]286 default locale does not include UTF-8.
287 </para>
288
[5474306]289 </sect2>
290
291 <sect2 role="content">
292 <title>Contents</title>
293
294 <segmentedlist>
295 <segtitle>Installed Programs</segtitle>
296 <segtitle>Installed Libraries</segtitle>
297 <segtitle>Installed Directories</segtitle>
298
299 <seglistitem>
[2511f83]300 <seg>
[6459a7e2]301 pdfdetach, pdffonts, pdfimages, pdfinfo, pdfseparate,
302 pdftocairo, pdftohtml, pdftoppm, pdftops, pdftotext,
[b4c7420]303 pdfunite, and poppler-glib-demo
[2511f83]304 </seg>
305 <seg>
[f3429309]306 libpoppler.so,
[8538618]307 libpoppler-cpp.so,
[f3a6abc9]308 libpoppler-glib.so,
309 libpoppler-qt4.so, and
310 libpoppler-qt5.so
[2511f83]311 </seg>
312 <seg>
[f3429309]313 /usr/include/poppler,
314 /usr/share/poppler,
[8538618]315 /usr/share/gtk-doc/html/poppler, and
[da8baac5]316 /usr/share/doc/poppler-&poppler-version;
[2511f83]317 </seg>
[5474306]318 </seglistitem>
319 </segmentedlist>
320
321 <variablelist>
322 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
323 <?dbfo list-presentation="list"?>
324 <?dbhtml list-presentation="table"?>
325
[95b1905]326 <varlistentry id="pdfdetach">
327 <term><command>pdfdetach</command></term>
328 <listitem>
329 <para>
330 lists or extracts embedded files from PDF files.
331 </para>
332 <indexterm zone="poppler pdfdetach">
333 <primary sortas="b-pdfdetach">pdfdetach</primary>
334 </indexterm>
335 </listitem>
[0d7900a]336 </varlistentry>
337
[2d1ea57b]338 <varlistentry id="pdffonts">
[a5dfefb2]339 <term><command>pdffonts</command></term>
340 <listitem>
[2511f83]341 <para>
342 lists the fonts used in a PDF file along with various information
343 for each font.
344 </para>
[a5dfefb2]345 <indexterm zone="poppler pdffonts">
346 <primary sortas="b-pdffonts">pdffonts</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
[2d1ea57b]351 <varlistentry id="pdfimages">
[a5dfefb2]352 <term><command>pdfimages</command></term>
353 <listitem>
[2511f83]354 <para>
355 saves images from a PDF file as PPM, PBM, or JPEG files.
356 </para>
[a5dfefb2]357 <indexterm zone="poppler pdfimages">
358 <primary sortas="b-pdfimages">pdfimages</primary>
359 </indexterm>
360 </listitem>
361 </varlistentry>
362
[2d1ea57b]363 <varlistentry id="pdfinfo">
[a5dfefb2]364 <term><command>pdfinfo</command></term>
365 <listitem>
[2511f83]366 <para>
367 prints the contents of the 'Info' dictionary (plus some other useful
368 information) from a PDF file.
369 </para>
[a5dfefb2]370 <indexterm zone="poppler pdfinfo">
371 <primary sortas="b-pdfinfo">pdfinfo</primary>
372 </indexterm>
373 </listitem>
374 </varlistentry>
375
376 <varlistentry id="pdfseparate">
377 <term><command>pdfseparate</command></term>
378 <listitem>
[2511f83]379 <para>
380 extracts single pages from a PDF file.
381 </para>
[a5dfefb2]382 <indexterm zone="poppler pdfseparate">
383 <primary sortas="b-pdseparate">pdfseparate</primary>
384 </indexterm>
385 </listitem>
386 </varlistentry>
387
388 <varlistentry id="pdftocairo">
389 <term><command>pdftocairo</command></term>
390 <listitem>
[2511f83]391 <para>
392 converts a PDF file to one of several formats (PNG, JPEG, PDF, PS,
393 EPS, SVG) using the cairo output device of the poppler library.
394 </para>
[a5dfefb2]395 <indexterm zone="poppler pdftocairo">
396 <primary sortas="b-pdftocairo">pdftocairo</primary>
397 </indexterm>
398 </listitem>
399 </varlistentry>
400
401 <varlistentry id="pdftohtml">
402 <term><command>pdftohtml</command></term>
403 <listitem>
[2511f83]404 <para>
405 converts a PDF file to HTML.
406 </para>
[a5dfefb2]407 <indexterm zone="poppler pdftohtml">
408 <primary sortas="b-pdftohtml">pdftohtml</primary>
409 </indexterm>
410 </listitem>
411 </varlistentry>
412
[2d1ea57b]413 <varlistentry id="pdftoppm">
[a5dfefb2]414 <term><command>pdftoppm</command></term>
415 <listitem>
[2511f83]416 <para>
417 converts PDF files to PBM, PGM and PPM formats.
418 </para>
[a5dfefb2]419 <indexterm zone="poppler pdftoppm">
420 <primary sortas="b-pdftoppm">pdftoppm</primary>
421 </indexterm>
422 </listitem>
423 </varlistentry>
424
[2d1ea57b]425 <varlistentry id="pdftops">
[a5dfefb2]426 <term><command>pdftops</command></term>
427 <listitem>
[2511f83]428 <para>
429 converts PDF files to Postscript format.
430 </para>
[a5dfefb2]431 <indexterm zone="poppler pdftops">
432 <primary sortas="b-pdftops">pdftops</primary>
433 </indexterm>
434 </listitem>
435 </varlistentry>
436
[2d1ea57b]437 <varlistentry id="pdftotext">
[a5dfefb2]438 <term><command>pdftotext</command></term>
439 <listitem>
[2511f83]440 <para>
441 converts PDF files to plain text.
442 </para>
[a5dfefb2]443 <indexterm zone="poppler pdftotext">
444 <primary sortas="b-pdftotext">pdftotext</primary>
445 </indexterm>
446 </listitem>
447 </varlistentry>
448
449 <varlistentry id="pdfunite">
450 <term><command>pdfunite</command></term>
451 <listitem>
[2511f83]452 <para>
453 merges several PDF files, in the order of their occurrence on the
454 command line, to one PDF output file.
455 </para>
[a5dfefb2]456 <indexterm zone="poppler pdfunite">
457 <primary sortas="b-pdfunite">pdfunite</primary>
458 </indexterm>
459 </listitem>
460 </varlistentry>
461
462 <varlistentry id="poppler-glib-demo">
463 <term><command>poppler-glib-demo</command></term>
464 <listitem>
[2511f83]465 <para>
466 is a tool to demonstrate the API, and for use when debugging and
[6459a7e2]467 testing <application>Poppler</application>.
[2511f83]468 </para>
[a5dfefb2]469 <indexterm zone="poppler poppler-glib-demo">
470 <primary sortas="b-poppler-glib-demo">poppler-glib-demo</primary>
471 </indexterm>
472 </listitem>
473 </varlistentry>
474
[5474306]475 <varlistentry id="libpoppler">
[6459a7e2]476 <term><filename class="libraryfile">libpoppler.so</filename></term>
[5474306]477 <listitem>
[2511f83]478 <para>
479 contains the API functions to render PDF files.
480 </para>
[5474306]481 <indexterm zone="poppler libpoppler">
[a5dfefb2]482 <primary sortas="c-libpoppler">libpoppler.so</primary>
[5474306]483 </indexterm>
484 </listitem>
485 </varlistentry>
486
[7d564a1]487 <varlistentry id="libpoppler-cpp">
[6459a7e2]488 <term><filename class="libraryfile">libpoppler-cpp.so</filename></term>
[7d564a1]489 <listitem>
[2511f83]490 <para>
491 is a C++ backend for rendering PDF files.
492 </para>
[7d564a1]493 <indexterm zone="poppler libpoppler-cpp">
[a5dfefb2]494 <primary sortas="c-libpoppler-cpp">libpoppler-cpp.so</primary>
[7d564a1]495 </indexterm>
496 </listitem>
497 </varlistentry>
498
[5474306]499 <varlistentry id="libpoppler-glib">
[6459a7e2]500 <term><filename class="libraryfile">libpoppler-glib.so</filename></term>
[5474306]501 <listitem>
[2511f83]502 <para>
503 is a wrapper library used to interface the PDF rendering functions
504 with <application>GTK+</application>.
505 </para>
[5474306]506 <indexterm zone="poppler libpoppler-glib">
[a5dfefb2]507 <primary sortas="c-libpoppler-glib">libpoppler-glib.so</primary>
[5474306]508 </indexterm>
509 </listitem>
510 </varlistentry>
511
512 <varlistentry id="libpoppler-qt4">
[6459a7e2]513 <term><filename class="libraryfile">libpoppler-qt4.so</filename></term>
[5474306]514 <listitem>
[2511f83]515 <para>
516 is a wrapper library used to interface the PDF rendering functions
[f3a6abc9]517 with <application>Qt</application>4.
[2511f83]518 </para>
[5474306]519 <indexterm zone="poppler libpoppler-qt4">
[a5dfefb2]520 <primary sortas="c-libpoppler-qt4">libpoppler-qt4.so</primary>
[5474306]521 </indexterm>
522 </listitem>
523 </varlistentry>
[6459a7e2]524
[f3a6abc9]525 <varlistentry id="libpoppler-qt5">
526 <term><filename class="libraryfile">libpoppler-qt5.so</filename></term>
527 <listitem>
528 <para>
529 is a wrapper library used to interface the PDF rendering functions
530 with <application>Qt</application>5.
531 </para>
532 <indexterm zone="poppler libpoppler-qt5">
533 <primary sortas="c-libpoppler-qt5">libpoppler-qt5.so</primary>
534 </indexterm>
535 </listitem>
536 </varlistentry>
537
[5474306]538 </variablelist>
[6459a7e2]539
[5474306]540 </sect2>
[6459a7e2]541
[5474306]542</sect1>
Note: See TracBrowser for help on using the repository browser.