From c1673176380d6a9ed350c8943e7035565924e48f Mon Sep 17 00:00:00 2001 From: exu Date: Sat, 29 Jul 2023 15:37:39 +0200 Subject: [PATCH] Add Ghostscript PDF merging --- pages/04.other/useful-commands/default.en.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pages/04.other/useful-commands/default.en.md b/pages/04.other/useful-commands/default.en.md index e7e5e6d..3996565 100644 --- a/pages/04.other/useful-commands/default.en.md +++ b/pages/04.other/useful-commands/default.en.md @@ -18,6 +18,22 @@ convert -density 600 {INPUT.PDF} -crop 50x100% +repage {OUT.PDF} -crop 50x100%: this splits the pdf into "left" and "right". 100x50% would split into "top" and "bottom" ``` +## Ghostscript + +### Merge multiple PDF files + +Ghostscript is preinstalled on a lot of Linux systems and can quite easily be used to merge and optimize multiple PDF files into one. + +[shuser] + +```sh +gs -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -o merged.pdf .pdf .pdf +``` + +[/shuser] + +> [Merge / convert multiple PDF files into one PDF](https://stackoverflow.com/a/19358402) + ## Find ### Change filtered permissions