Projekt

Allgemein

Profil

Howto pdf » Historie » Version 1

Jeremias Keihsler, 05.03.2026 19:21

1 1 Jeremias Keihsler
h1. Howto pdf
2
3
h2. splitting pdf in ranges
4
5
qpdf is doing the job
6
7
<pre><code class="shell">
8
qpdf really_large.pdf --pages . 1739-1987 -- really_large_section.pdf
9
</code></pre>
10
11
but qpdf is lossless, so the size of the pdf stays basically unchanged.
12
To resize the pdf, let's rerender it and save only the needed content.
13
14
<pre><code class="shell">
15
gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -sOutputFile=really_large_section.pdf_small.pdf really_large_section.pdf
16
</code></pre>