summaryrefslogtreecommitdiff
path: root/source/desktop/pdf_manipulation/index.rst
blob: 9244c708a3589e583dcc65a67e029ab626648a0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
******************
 PDF Manipulation
******************

A list of useful commands to manipulate PDF files.

.. only:: html

   .. contents::

Page manipulation
=================

Cropping all pages of a pdf
---------------------------

To crop all pages of a PDF from e.g. A4 to A5, keeping only the top of
the page::

   pdfjam \
      --papersize 210mm,148mm --trim "0mm 0mm 0mm 149mm" \
      --scale 1 \
      -o <output_file.pdf> <input_file.pdf>

where the ``--trim`` option is not documented in pdfjam, but it's passed
to ``\includegraphics`` and documented there.

..
   vim: set filetype=rst: