Aller au contenu

« Linux tools PDF » : différence entre les versions

De Marmits Wiki
 
Ligne 37 : Ligne 37 :


source https://debian-facile.org/doc:editeurs:pdftk
source https://debian-facile.org/doc:editeurs:pdftk
[[Catégorie:Linux]] [[Catégorie:Tools]] [[Catégorie: Terminal]]
[[Catégorie:Linux]] [[Catégorie:Tools]] [[Catégorie: Terminal Tools]]

Dernière version du 22 octobre 2025 à 14:59

Compresser PDF (ghostscript)

 gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -sOUTPUTFILE=fichier_outout.pdf -f input.pdf
 gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=fichier_outout_prepress.pdf input.pdf
 gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=fichier_outout_printer.pdf input.pdf
 gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=fichier_outout_ebook.pdf input.pdf
 gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=fichier_outout_screen.pdf input.pdf

Convert img to pdf (img2pdf)

 sudo apt-get install img2pdf
 img2pdf test.png -o outcome.pdf

Fusionner pdf (pdftk)

 sudo apt-get install pdftk
 pdftk fichier1.pdf fichier2.pdf cat output fichier3.pdf
 pdftk mon-document.pdf output mon-document.comprimé.pdf compress

source https://debian-facile.org/doc:editeurs:pdftk