Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
software:pdf [2024/12/11 10:27]
cyril rotate
software:pdf [2025/01/07 22:49] (current)
cyril [convert (image magick)]
Line 13: Line 13:
 </code> </code>
  
 +Compress PDF file containing images (''/screen'' compresses even more than ''/ebook''):
 +<code>
 +gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -sOutputFile=out.pdf in.pdf
 +</code>
 ===== PDFTK ===== ===== PDFTK =====
  
   * Split and merge PDF files:<code>   * Split and merge PDF files:<code>
 +pdftk in.pdf cat 2-4 output out.pdf
 pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf pdftk 1.pdf 2.pdf 3.pdf cat output 123.pdf
 pdftk A=one.pdf B=two.pdf cat A1-7 B1-5 A8 output combined.pdf pdftk A=one.pdf B=two.pdf cat A1-7 B1-5 A8 output combined.pdf
Line 61: Line 66:
 <code> <code>
 convert -density 300x300 test.pdf test.png convert -density 300x300 test.pdf test.png
 +</code>
 +
 +Recompress the pages:<code>
 +convert -quality 80 page-1.jpg page-1c.jpg
 +</code>
 +
 +Erase a part of the image (especially useful for batch processing):<code>
 +convert page-1.jpg -fill white -draw "rectangle 0,0 300,1753" page-1c.jpg
 </code> </code>
 ===== pdftotext ===== ===== pdftotext =====
software/pdf.1733912864.txt.gz ยท Last modified: 2024/12/11 10:27 by cyril
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0