1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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 |
|
---|
7 | <!ENTITY qpdf-download-http "https://github.com/qpdf/qpdf/releases/download/v&qpdf-version;/qpdf-&qpdf-version;.tar.gz">
|
---|
8 | <!ENTITY qpdf-download-ftp " ">
|
---|
9 | <!ENTITY qpdf-md5sum "22dcfec7700e4d8b08a116ecc1c529ac">
|
---|
10 | <!ENTITY qpdf-size "18 MB">
|
---|
11 | <!ENTITY qpdf-buildsize "272 MB (add 1 MB for tests)">
|
---|
12 | <!ENTITY qpdf-time "0.6 SBU (using parallelism=4; add 0.5 SBU for tests)">
|
---|
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
|
---|
30 | programs and a library that does structural, content-preserving
|
---|
31 | transformations on PDF files.
|
---|
32 | </para>
|
---|
33 |
|
---|
34 | &lfs122_checked;
|
---|
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 |
|
---|
72 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
73 | <para role="required">
|
---|
74 | <xref linkend="libjpeg"/>
|
---|
75 | </para>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
78 | <para role="optional">
|
---|
79 | <xref linkend="gs"/>,
|
---|
80 | <xref linkend="gnutls"/>,
|
---|
81 | <xref linkend="libtiff"/>,
|
---|
82 | <xref linkend="sphinx"/> with <xref linkend="sphinx_rtd_theme"/>, and
|
---|
83 | <xref linkend="texlive"/> or <xref linkend="tl-installer"/>
|
---|
84 | </para>
|
---|
85 |
|
---|
86 | </sect2>
|
---|
87 |
|
---|
88 | <sect2 role="installation">
|
---|
89 | <title>Installation of Qpdf</title>
|
---|
90 |
|
---|
91 | <para>
|
---|
92 | Install <application>Qpdf</application> by running the following
|
---|
93 | commands:
|
---|
94 | </para>
|
---|
95 |
|
---|
96 | <screen><userinput>mkdir build &&
|
---|
97 | cd build &&
|
---|
98 |
|
---|
99 | cmake -D CMAKE_INSTALL_PREFIX=/usr \
|
---|
100 | -D CMAKE_BUILD_TYPE=Release \
|
---|
101 | -D BUILD_STATIC_LIBS=OFF \
|
---|
102 | -D CMAKE_INSTALL_DOCDIR=/usr/share/doc/qpdf-&qpdf-version; \
|
---|
103 | .. &&
|
---|
104 | make</userinput></screen>
|
---|
105 |
|
---|
106 | <para>
|
---|
107 | To test the results, issue: <command>ctest</command>.
|
---|
108 | </para>
|
---|
109 |
|
---|
110 | <para>
|
---|
111 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
112 | </para>
|
---|
113 |
|
---|
114 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
115 |
|
---|
116 | </sect2>
|
---|
117 | <!--
|
---|
118 | <sect2 role="commands">
|
---|
119 | <title>Command Explanations</title>
|
---|
120 |
|
---|
121 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
122 | href="../../xincludes/static-libraries.xml"/>
|
---|
123 |
|
---|
124 | </sect2>
|
---|
125 | -->
|
---|
126 | <sect2 role="content">
|
---|
127 | <title>Contents</title>
|
---|
128 |
|
---|
129 | <segmentedlist>
|
---|
130 | <segtitle>Installed Programs</segtitle>
|
---|
131 | <segtitle>Installed Library</segtitle>
|
---|
132 | <segtitle>Installed Directories</segtitle>
|
---|
133 |
|
---|
134 | <seglistitem>
|
---|
135 | <seg>
|
---|
136 | fix-qdf, qpdf, and zlib-flate
|
---|
137 | </seg>
|
---|
138 | <seg>
|
---|
139 | libqpdf.so
|
---|
140 | </seg>
|
---|
141 | <seg>
|
---|
142 | /usr/lib/cmake/qpdf,
|
---|
143 | /usr/include/qpdf, and
|
---|
144 | /usr/share/doc/qpdf-&qpdf-version;
|
---|
145 | </seg>
|
---|
146 | </seglistitem>
|
---|
147 | </segmentedlist>
|
---|
148 |
|
---|
149 | <variablelist>
|
---|
150 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
151 | <?dbfo list-presentation="list"?>
|
---|
152 | <?dbhtml list-presentation="table"?>
|
---|
153 |
|
---|
154 | <varlistentry id="fix-qdf">
|
---|
155 | <term><command>fix-qdf</command></term>
|
---|
156 | <listitem>
|
---|
157 | <para>
|
---|
158 | is used to repair PDF files in QDF form after
|
---|
159 | editing
|
---|
160 | </para>
|
---|
161 | <indexterm zone="qpdf fix-qdf">
|
---|
162 | <primary sortas="b-fix-qdf">fix-qdf</primary>
|
---|
163 | </indexterm>
|
---|
164 | </listitem>
|
---|
165 | </varlistentry>
|
---|
166 |
|
---|
167 | <varlistentry id="qpdf-prog">
|
---|
168 | <term><command>qpdf</command></term>
|
---|
169 | <listitem>
|
---|
170 | <para>
|
---|
171 | is used to convert one PDF file to another equivalent
|
---|
172 | PDF file
|
---|
173 | </para>
|
---|
174 | <indexterm zone="qpdf qpdf-prog">
|
---|
175 | <primary sortas="b-qpdf">qpdf</primary>
|
---|
176 | </indexterm>
|
---|
177 | </listitem>
|
---|
178 | </varlistentry>
|
---|
179 |
|
---|
180 | <varlistentry id="zlib-flate">
|
---|
181 | <term><command>zlib-flate</command></term>
|
---|
182 | <listitem>
|
---|
183 | <para>
|
---|
184 | is a raw zlib compression program
|
---|
185 | </para>
|
---|
186 | <indexterm zone="qpdf zlib-flate">
|
---|
187 | <primary sortas="b-qpdf">zlib-flate</primary>
|
---|
188 | </indexterm>
|
---|
189 | </listitem>
|
---|
190 | </varlistentry>
|
---|
191 |
|
---|
192 | <varlistentry id="libqpdf">
|
---|
193 | <term><filename class="libraryfile">libqpdf.so</filename></term>
|
---|
194 | <listitem>
|
---|
195 | <para>
|
---|
196 | contains the <application>Qpdf</application> API functions
|
---|
197 | </para>
|
---|
198 | <indexterm zone="qpdf libqpdf">
|
---|
199 | <primary sortas="c-libqpdf">libqpdf.so</primary>
|
---|
200 | </indexterm>
|
---|
201 | </listitem>
|
---|
202 | </varlistentry>
|
---|
203 |
|
---|
204 | </variablelist>
|
---|
205 |
|
---|
206 | </sect2>
|
---|
207 |
|
---|
208 | </sect1>
|
---|