2024-01-20 05:35:53 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2012-10-26 04:37:27 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2022-09-12 23:38:49 +08:00
|
|
|
<!ENTITY qpdf-download-http "https://github.com/qpdf/qpdf/releases/download/v&qpdf-version;/qpdf-&qpdf-version;.tar.gz">
|
2012-10-26 04:37:27 +08:00
|
|
|
<!ENTITY qpdf-download-ftp " ">
|
2024-01-15 02:02:46 +08:00
|
|
|
<!ENTITY qpdf-md5sum "aec6ad628203411cd04fbb7e145ecc72">
|
2020-04-07 17:58:42 +08:00
|
|
|
<!ENTITY qpdf-size "18 MB">
|
2024-01-15 02:02:46 +08:00
|
|
|
<!ENTITY qpdf-buildsize "256 MB (add 1 MB for tests)">
|
2023-10-19 07:58:43 +08:00
|
|
|
<!ENTITY qpdf-time "0.5 SBU (using parallelism=4; add 0.5 SBU for tests)">
|
2012-10-26 04:37:27 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="qpdf" xreflabel="Qpdf-&qpdf-version;">
|
|
|
|
<?dbhtml filename="qpdf.html"?>
|
|
|
|
|
|
|
|
|
|
|
|
<title>Qpdf-&qpdf-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="qpdf">
|
|
|
|
<primary sortas="a-Qpdf">Qpdf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Qpdf</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The <application>Qpdf</application> package contains command-line
|
2020-10-31 10:08:59 +08:00
|
|
|
programs and a library that does structural, content-preserving
|
2013-02-12 02:51:17 +08:00
|
|
|
transformations on PDF files.
|
2012-10-26 04:37:27 +08:00
|
|
|
</para>
|
|
|
|
|
2023-08-20 08:38:45 +08:00
|
|
|
&lfs120_checked;
|
2012-10-26 04:37:27 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&qpdf-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&qpdf-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &qpdf-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &qpdf-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &qpdf-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &qpdf-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Qpdf Dependencies</bridgehead>
|
|
|
|
|
2018-03-10 05:37:04 +08:00
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
|
|
|
<xref linkend="libjpeg"/>
|
|
|
|
</para>
|
|
|
|
|
2012-10-26 04:37:27 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
2023-05-25 01:47:37 +08:00
|
|
|
<xref linkend="gs"/>,
|
|
|
|
<xref linkend="gnutls"/>,
|
|
|
|
<xref linkend="libtiff"/>,
|
|
|
|
<xref linkend="sphinx"/> with <xref linkend="sphinx_rtd_theme"/>, and
|
|
|
|
<xref linkend="texlive"/> or <xref linkend="tl-installer"/>
|
2012-10-26 04:37:27 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Qpdf</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Install <application>Qpdf</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
2022-09-12 05:08:04 +08:00
|
|
|
<screen><userinput>mkdir build &&
|
|
|
|
cd build &&
|
|
|
|
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DBUILD_STATIC_LIBS=OFF \
|
2022-09-13 13:10:04 +08:00
|
|
|
-DCMAKE_INSTALL_DOCDIR=/usr/share/doc/qpdf-&qpdf-version; \
|
2022-09-12 05:08:04 +08:00
|
|
|
.. &&
|
2012-10-26 04:37:27 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
2022-09-12 05:08:04 +08:00
|
|
|
To test the results, issue: <command>ctest</command>.
|
2012-10-26 04:37:27 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2013-07-15 06:03:58 +08:00
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
2012-10-26 04:37:27 +08:00
|
|
|
|
|
|
|
</sect2>
|
2022-09-12 05:08:04 +08:00
|
|
|
<!--
|
2012-10-26 04:37:27 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/static-libraries.xml"/>
|
|
|
|
|
|
|
|
</sect2>
|
2022-09-12 05:08:04 +08:00
|
|
|
-->
|
2012-10-26 04:37:27 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
2013-07-15 06:03:58 +08:00
|
|
|
fix-qdf, qpdf, and zlib-flate
|
2012-10-26 04:37:27 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libqpdf.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
2022-09-12 05:08:04 +08:00
|
|
|
/usr/lib/cmake/qpdf,
|
|
|
|
/usr/include/qpdf, and
|
2013-10-24 20:18:08 +08:00
|
|
|
/usr/share/doc/qpdf-&qpdf-version;
|
2012-10-26 04:37:27 +08:00
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="fix-qdf">
|
|
|
|
<term><command>fix-qdf</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to repair PDF files in QDF form after
|
2021-02-19 23:20:16 +08:00
|
|
|
editing
|
2012-10-26 04:37:27 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="qpdf fix-qdf">
|
|
|
|
<primary sortas="b-fix-qdf">fix-qdf</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="qpdf-prog">
|
|
|
|
<term><command>qpdf</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
is used to convert one PDF file to another equivalent
|
2021-02-19 23:20:16 +08:00
|
|
|
PDF file
|
2012-10-26 04:37:27 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="qpdf qpdf-prog">
|
|
|
|
<primary sortas="b-qpdf">qpdf</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2015-06-12 08:24:25 +08:00
|
|
|
<varlistentry id="zlib-flate">
|
|
|
|
<term><command>zlib-flate</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
is a raw zlib compression program
|
2015-06-12 08:24:25 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="qpdf zlib-flate">
|
|
|
|
<primary sortas="b-qpdf">zlib-flate</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2012-10-26 04:37:27 +08:00
|
|
|
<varlistentry id="libqpdf">
|
|
|
|
<term><filename class="libraryfile">libqpdf.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
contains the <application>Qpdf</application> API functions
|
2012-10-26 04:37:27 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="qpdf libqpdf">
|
|
|
|
<primary sortas="c-libqpdf">libqpdf.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|