User Tools

Site Tools


pdftk

Differences

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

Link to this comparison view

Next revision
Previous revision
pdftk [2012/07/22 17:02] – created adminpdftk [2021/01/14 11:18] (current) francesco
Line 30: Line 30:
  
 <code> <code>
-pdftk Talleyrand_5.pdf cat 2, 551 output citazione.pdf+pdftk Talleyrand_5.pdf cat 2 552 output citazione.pdf 
 +</code> 
 + 
 +e difatti funziona! 
 + 
 +---- 
 + 
 +Per estrarre più pagine: 
 + 
 +<code> 
 +pdftk Eliot.pdf cat 247-248 317-359 output MBB.pdf 
 +</code> 
 + 
 +---- 
 + 
 +Per inserire della pagine all'interno di un documento: 
 + 
 +<code> 
 +pdftk A=Rendicontazione_Gramsci.pdf B=Fattura_Chomel.pdf cat A1-7 B A8-end output output.pdf 
 +</code> 
 + 
 +aggiunge il pdf "Fattura_Chomel" dopo la pagina 7 di "Rendicontazione_Gramsci" e riprende da pagina 8. 
 + 
 +---- 
 + 
 +Per alleggerire un PDF: 
 + 
 +<code> 
 +ps2pdf -dPDFSETTINGS=/ebook BiggerPdf SmallerPDF  
 +</code> 
 + 
 +oppure, con GhostScript: 
 + 
 +<code> 
 +sudo apt install ghostscript 
 +</code> 
 + 
 +<code> 
 +gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=compressed_PDF_file.pdf input_PDF_file.pdf 
 +</code> 
 + 
 +dove i settings possono essere prepress, ebook o, meglio ancora, screen 
 + 
 +https://itsfoss.com/compress-pdf-linux/ 
 +---- 
 +Ho provato a confrontare un'installazione del programma su una Debian Buster e su una FreeBSD 11.4, headless, nel caso dovessi utilizzarlo in una macchina virtuale. Queste sono le differenze. 
 + 
 +Debian: 
 + 
 +<code> 
 +francesco@biblioteca:~$ pdftk -help 
 +pdftk port to java 3.0.2 a Handy Tool for Manipulating PDF Documents 
 +Copyright (c) 2017-2018 Marc Vinyals - https://gitlab.com/pdftk-java/pdftk 
 +Copyright (c) 2003-2013 Steward and Lee, LLC. 
 +pdftk includes a modified version of the iText library. 
 +Copyright (c) 1999-2009 Bruno Lowagie, Paulo Soares, et al. 
 +This is free software; see the source code for copying conditions. There is 
 +NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 +</code> 
 + 
 +FreeBSD: 
 + 
 +<code> 
 +$ pdftk -help 
 +pdftk port to java 3.2.2 a Handy Tool for Manipulating PDF Documents 
 +Copyright (c) 2017-2018 Marc Vinyals - https://gitlab.com/pdftk-java/pdftk 
 +Copyright (c) 2003-2013 Steward and Lee, LLC. 
 +pdftk includes a modified version of the iText library. 
 +Copyright (c) 1999-2009 Bruno Lowagie, Paulo Soares, et al. 
 +This is free software; see the source code for copying conditions. There is 
 +NO warranty, not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 </code> </code>
pdftk.1342969361.txt.gz · Last modified: 2012/07/22 17:02 by admin