blob: f4e093100dd6e96a4c14c1249d4f8669f01f1dad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
|