This shows you the differences between two versions of the page.
| — |
utils_pdf_manipulation [2022/04/12 23:29] (current) xavier created |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== PDF manipulation commands and explanations ====== | ||
| + | ===== Compress PDF files ===== | ||
| + | |||
| + | Compression of batch of PDF files (different levels available):\\ | ||
| + | ''$ for i in `find *.pdf`; do gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=pdf/$i $i ; done''\\ | ||
| + | \\ | ||
| + | Options:\\ | ||
| + | -dPDFSETTINGS=/screen — Low quality and small size at 72dpi.\\ | ||
| + | -dPDFSETTINGS=/ebook — Slightly better quality but also a larger file size at 150dpi.\\ | ||
| + | -dPDFSETTINGS=/prepress — High quality and large size at 300 dpi.\\ | ||
| + | -dPDFSETTINGS=/default — System chooses the best output, which can create larger PDF files.\\ | ||