Difference between revisions of "PDF Tools"
From RobolaboWiki
(Created page with " <pre> pdfnup original.pdf --nup 1x1 --pages 1,3,5,7,21-25 --outfile subset.pdf </pre>") |
|||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | <!--__NOTOC__--> | ||
+ | <h1> Reduce PDFs size</h1> | ||
+ | <pre> | ||
+ | gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf | ||
+ | </pre> | ||
+ | <h1> Merge PDFs </h1> | ||
+ | <pre> | ||
+ | gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=OUTPUT_FILE1.pdf INPUT_FILE1.pdf INPUT_FILE2.pdf | ||
+ | </pre> | ||
+ | |||
+ | <h1> Cut PDFs </h1> | ||
<pre> | <pre> | ||
− | pdfnup | + | pdfnup INPUT_FILE.pdf '1-21' --nup 1x1 --no-landscape --outfile OUTPUT_FILE.pdf |
</pre> | </pre> | ||
+ | |||
+ | <h1> PDF Printer </h1> | ||
+ | |||
+ | Install cups-pdf | ||
+ | <pre> | ||
+ | apt-get install cups-pdf | ||
+ | </pre> | ||
+ | |||
+ | Go to System -> Administration -> Printing and then Printer ->Add Printer. | ||
+ | |||
+ | |||
+ | Select Local Printer -> PDF Printer | ||
+ | |||
+ | |||
+ | Model PostScript | ||
+ | |||
+ | [[media:vimrc.txt | vimrc ]] |
Latest revision as of 14:28, 7 December 2016
Reduce PDFs size
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
Merge PDFs
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=OUTPUT_FILE1.pdf INPUT_FILE1.pdf INPUT_FILE2.pdf
Cut PDFs
pdfnup INPUT_FILE.pdf '1-21' --nup 1x1 --no-landscape --outfile OUTPUT_FILE.pdf
PDF Printer
Install cups-pdf
apt-get install cups-pdf
Go to System -> Administration -> Printing and then Printer ->Add Printer.
Select Local Printer -> PDF Printer
Model PostScript