[7b3dea39] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[0d883a2] | 7 | <!ENTITY qpdf-download-http "https://github.com/qpdf/qpdf/releases/download/v&qpdf-version;/qpdf-&qpdf-version;.tar.gz">
|
---|
[7b3dea39] | 8 | <!ENTITY qpdf-download-ftp " ">
|
---|
[296cbe2] | 9 | <!ENTITY qpdf-md5sum "8fa1fc5d8b99e41c4f9d0760d6733756">
|
---|
[dce78fa] | 10 | <!ENTITY qpdf-size "18 MB">
|
---|
[5477965] | 11 | <!ENTITY qpdf-buildsize "249 MB (add 2 MB for tests)">
|
---|
[296cbe2] | 12 | <!ENTITY qpdf-time "0.5 SBU (using parallelism=4; add 0.5 SBU for tests)">
|
---|
[7b3dea39] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="qpdf" xreflabel="Qpdf-&qpdf-version;">
|
---|
| 16 | <?dbhtml filename="qpdf.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>Qpdf-&qpdf-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="qpdf">
|
---|
| 22 | <primary sortas="a-Qpdf">Qpdf</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to Qpdf</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | The <application>Qpdf</application> package contains command-line
|
---|
[d514a90] | 30 | programs and a library that does structural, content-preserving
|
---|
[0d7900a] | 31 | transformations on PDF files.
|
---|
[7b3dea39] | 32 | </para>
|
---|
| 33 |
|
---|
[6b871ea] | 34 | &lfs112_checked;
|
---|
[7b3dea39] | 35 |
|
---|
| 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
| 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&qpdf-download-http;"/>
|
---|
| 41 | </para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&qpdf-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download MD5 sum: &qpdf-md5sum;
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download size: &qpdf-size;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Estimated disk space required: &qpdf-buildsize;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated build time: &qpdf-time;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect3">Qpdf Dependencies</bridgehead>
|
---|
| 71 |
|
---|
[82e07e67] | 72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 73 | <para role="required">
|
---|
| 74 | <xref linkend="libjpeg"/>
|
---|
| 75 | </para>
|
---|
| 76 |
|
---|
[7b3dea39] | 77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 78 | <para role="optional">
|
---|
[d514a90] | 79 | <xref linkend="fop"/>,
|
---|
| 80 | <xref linkend="gnutls"/>, and
|
---|
[402910e] | 81 | <xref linkend="sphinx"/>
|
---|
[7b3dea39] | 82 | </para>
|
---|
| 83 |
|
---|
| 84 | <para condition="html" role="usernotes">
|
---|
| 85 | User Notes: <ulink url="&blfs-wiki;/qpdf"/>
|
---|
| 86 | </para>
|
---|
| 87 | </sect2>
|
---|
| 88 |
|
---|
| 89 | <sect2 role="installation">
|
---|
| 90 | <title>Installation of Qpdf</title>
|
---|
| 91 |
|
---|
| 92 | <para>
|
---|
| 93 | Install <application>Qpdf</application> by running the following
|
---|
| 94 | commands:
|
---|
| 95 | </para>
|
---|
| 96 |
|
---|
[9d9e7a6] | 97 | <screen><userinput>mkdir build &&
|
---|
| 98 | cd build &&
|
---|
| 99 |
|
---|
| 100 | cmake -DCMAKE_INSTALL_PREFIX=/usr \
|
---|
| 101 | -DCMAKE_BUILD_TYPE=Release \
|
---|
| 102 | -DBUILD_STATIC_LIBS=OFF \
|
---|
[80adfe6] | 103 | -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/qpdf-&qpdf-version; \
|
---|
[9d9e7a6] | 104 | .. &&
|
---|
[7b3dea39] | 105 | make</userinput></screen>
|
---|
| 106 |
|
---|
| 107 | <para>
|
---|
[9d9e7a6] | 108 | To test the results, issue: <command>ctest</command>.
|
---|
[7b3dea39] | 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <para>
|
---|
| 112 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
[17273d0] | 115 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[7b3dea39] | 116 |
|
---|
| 117 | </sect2>
|
---|
[9d9e7a6] | 118 | <!--
|
---|
[7b3dea39] | 119 | <sect2 role="commands">
|
---|
| 120 | <title>Command Explanations</title>
|
---|
| 121 |
|
---|
| 122 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 123 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 124 |
|
---|
| 125 | </sect2>
|
---|
[9d9e7a6] | 126 | -->
|
---|
[7b3dea39] | 127 | <sect2 role="content">
|
---|
| 128 | <title>Contents</title>
|
---|
| 129 |
|
---|
| 130 | <segmentedlist>
|
---|
| 131 | <segtitle>Installed Programs</segtitle>
|
---|
| 132 | <segtitle>Installed Library</segtitle>
|
---|
| 133 | <segtitle>Installed Directories</segtitle>
|
---|
| 134 |
|
---|
| 135 | <seglistitem>
|
---|
| 136 | <seg>
|
---|
[17273d0] | 137 | fix-qdf, qpdf, and zlib-flate
|
---|
[7b3dea39] | 138 | </seg>
|
---|
| 139 | <seg>
|
---|
| 140 | libqpdf.so
|
---|
| 141 | </seg>
|
---|
| 142 | <seg>
|
---|
[9d9e7a6] | 143 | /usr/lib/cmake/qpdf,
|
---|
| 144 | /usr/include/qpdf, and
|
---|
[2967fa69] | 145 | /usr/share/doc/qpdf-&qpdf-version;
|
---|
[7b3dea39] | 146 | </seg>
|
---|
| 147 | </seglistitem>
|
---|
| 148 | </segmentedlist>
|
---|
| 149 |
|
---|
| 150 | <variablelist>
|
---|
| 151 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 152 | <?dbfo list-presentation="list"?>
|
---|
| 153 | <?dbhtml list-presentation="table"?>
|
---|
| 154 |
|
---|
| 155 | <varlistentry id="fix-qdf">
|
---|
| 156 | <term><command>fix-qdf</command></term>
|
---|
| 157 | <listitem>
|
---|
| 158 | <para>
|
---|
| 159 | is used to repair PDF files in QDF form after
|
---|
[4c24eb0a] | 160 | editing
|
---|
[7b3dea39] | 161 | </para>
|
---|
| 162 | <indexterm zone="qpdf fix-qdf">
|
---|
| 163 | <primary sortas="b-fix-qdf">fix-qdf</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
| 167 |
|
---|
| 168 | <varlistentry id="qpdf-prog">
|
---|
| 169 | <term><command>qpdf</command></term>
|
---|
| 170 | <listitem>
|
---|
| 171 | <para>
|
---|
| 172 | is used to convert one PDF file to another equivalent
|
---|
[4c24eb0a] | 173 | PDF file
|
---|
[7b3dea39] | 174 | </para>
|
---|
| 175 | <indexterm zone="qpdf qpdf-prog">
|
---|
| 176 | <primary sortas="b-qpdf">qpdf</primary>
|
---|
| 177 | </indexterm>
|
---|
| 178 | </listitem>
|
---|
| 179 | </varlistentry>
|
---|
| 180 |
|
---|
[2a879b7c] | 181 | <varlistentry id="zlib-flate">
|
---|
| 182 | <term><command>zlib-flate</command></term>
|
---|
| 183 | <listitem>
|
---|
| 184 | <para>
|
---|
[4c24eb0a] | 185 | is a raw zlib compression program
|
---|
[2a879b7c] | 186 | </para>
|
---|
| 187 | <indexterm zone="qpdf zlib-flate">
|
---|
| 188 | <primary sortas="b-qpdf">zlib-flate</primary>
|
---|
| 189 | </indexterm>
|
---|
| 190 | </listitem>
|
---|
| 191 | </varlistentry>
|
---|
| 192 |
|
---|
[7b3dea39] | 193 | <varlistentry id="libqpdf">
|
---|
| 194 | <term><filename class="libraryfile">libqpdf.so</filename></term>
|
---|
| 195 | <listitem>
|
---|
| 196 | <para>
|
---|
[4c24eb0a] | 197 | contains the <application>Qpdf</application> API functions
|
---|
[7b3dea39] | 198 | </para>
|
---|
| 199 | <indexterm zone="qpdf libqpdf">
|
---|
| 200 | <primary sortas="c-libqpdf">libqpdf.so</primary>
|
---|
| 201 | </indexterm>
|
---|
| 202 | </listitem>
|
---|
| 203 | </varlistentry>
|
---|
| 204 |
|
---|
| 205 | </variablelist>
|
---|
| 206 |
|
---|
| 207 | </sect2>
|
---|
| 208 |
|
---|
| 209 | </sect1>
|
---|