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