Pdf: Difference between revisions
Jump to navigation
Jump to search
m (→Tips for Pdf) |
|||
Line 5: | Line 5: | ||
Use Ghostscript with the following options: | Use Ghostscript with the following options: | ||
:> gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=OUTPUT.pdf INPUT.pdf | :> gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=OUTPUT.pdf INPUT.pdf | ||
=== Converting Eps to Pdf === | |||
Use ''epstopdf'' under linux | |||
:> epstopdf plot.eps | |||
=== Cutting and merging pdf files === | === Cutting and merging pdf files === | ||
Line 20: | Line 25: | ||
* Rotate an entire PDF document to 180 degrees | * Rotate an entire PDF document to 180 degrees | ||
:> pdftk in.pdf cat 1-endS output out.pdf | :> pdftk in.pdf cat 1-endS output out.pdf | ||
[http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit Pdftk] is available on Windows and Mac too |
Revision as of 14:50, 28 September 2012
Tips for Pdf
Reducing the size of a pdf file
Use Ghostscript with the following options:
:> gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=OUTPUT.pdf INPUT.pdf
Converting Eps to Pdf
Use epstopdf under linux
:> epstopdf plot.eps
Cutting and merging pdf files
The desired software is pdftk. For further information
:> man pdftk
Examples:
- Join in1.pdf and in2.pdf into a new PDF, out1.pdf
:> pdftk in1.pdf in2.pdf cat output out1.pdf
- Remove page 13 from in1.pdf to create out1.pdf
:> pdftk in.pdf cat 1-12 14-end output out1.pdf
- Rotate the first PDF page to 90 degrees clockwise
:> pdftk in.pdf cat 1E 2-end output out.pdf
- Rotate an entire PDF document to 180 degrees
:> pdftk in.pdf cat 1-endS output out.pdf
Pdftk is available on Windows and Mac too