summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2026-06-01 19:53:50 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2026-06-01 19:53:50 +0200
commitc3e7f1c5acf3e19f01e8b6eca0e79f2c20e742e1 (patch)
treec154ba763f15deb0d2ed53cad6795e75e250a9fb
parente2578a66ad51d167790c1250fec9d6698de56906 (diff)
one use of pdfjamHEADmaster
-rw-r--r--source/desktop/index.rst1
-rw-r--r--source/desktop/pdf_manipulation/index.rst29
2 files changed, 30 insertions, 0 deletions
diff --git a/source/desktop/index.rst b/source/desktop/index.rst
index 353278f..93d6d04 100644
--- a/source/desktop/index.rst
+++ b/source/desktop/index.rst
@@ -8,4 +8,5 @@
command_line_printing/index
desktop_environment/index
+ pdf_manipulation/index
verifying_debian_arm_installer_images/index
diff --git a/source/desktop/pdf_manipulation/index.rst b/source/desktop/pdf_manipulation/index.rst
new file mode 100644
index 0000000..9244c70
--- /dev/null
+++ b/source/desktop/pdf_manipulation/index.rst
@@ -0,0 +1,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: