From 5a34032fe4d83de1ccbf9cf8e13fc6bfb4f668ce Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Sat, 17 Mar 2018 20:13:53 +0100 Subject: Initial commit --- pdf.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pdf.md (limited to 'pdf.md') diff --git a/pdf.md b/pdf.md new file mode 100644 index 0000000..f4e0931 --- /dev/null +++ b/pdf.md @@ -0,0 +1,13 @@ +# PDF operations + +## Merge + + gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=out.pdf in1.pdf in2.pdf + +## Compress + + gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages -dCompressFonts=true -r150 -sOutputFile=output.pdf input.pdf + +## Extract pages + + pdfjam --outfile out.pdf in.pdf 1,3,4-7 -- cgit v1.2.3