Difference between revisions of "Pdf"

From LPTMS Wiki
Jump to: navigation, search
m (Reducing the size of a pdf file)
 
Line 12: Line 12:
 
Quality options by order from smallest resolution to highest :
 
Quality options by order from smallest resolution to highest :
  
/screen pour un document destiné à l’écran (image 75 dpi)
+
* /screen screen document (image 75 dpi)
/ebook pour une qualité d’image de 150dpi (basse)
+
* /ebook low resolution image de 150dpi (basse)
/printer pour un document destiné à l’impression, 300dpi
+
* /printer printing resolution 300dpi
/prepress pour un document destiné à l’impression professionnelle, conservation des couleurs (300 dpi)
+
* /prepress professional quality for printing, conservation des couleurs (300 dpi)
/default quasi identique à /screen
+
* /default similar to /screen
  
 
=== Converting Eps to Pdf ===
 
=== Converting Eps to Pdf ===

Latest revision as of 14:08, 9 December 2020

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

More advanced

:> gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/printer -sOUTPUTFILE=newPDF.pdf -f PDF.pdf

Quality options by order from smallest resolution to highest :

  • /screen screen document (image 75 dpi)
  • /ebook low resolution image de 150dpi (basse)
  • /printer printing resolution 300dpi
  • /prepress professional quality for printing, conservation des couleurs (300 dpi)
  • /default similar to /screen

Converting Eps to Pdf

Use epstopdf under linux

:> epstopdf plot.eps

Removing blank parts around a Pdf

Useful for figures. Use pdfcrop under linux

:> pdfcrop plot.pdf

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