« Linux tools PDF » : différence entre les versions
Apparence
Aucun résumé des modifications |
|||
| (3 versions intermédiaires par le même utilisateur non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
== Compresser PDF (ghostscript) == | == Compresser PDF (ghostscript) == | ||
gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -sOUTPUTFILE=fichier_outout.pdf -f | <syntaxhighlight lang="bash" copy> | ||
gs -q -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -sOUTPUTFILE=fichier_outout.pdf -f input.pdf | |||
</syntaxhighlight> | |||
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=fichier_outout_prepress.pdf | <syntaxhighlight lang="bash" copy> | ||
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dNOPAUSE -dQUIET -dBATCH -sOutputFile=fichier_outout_prepress.pdf input.pdf | |||
</syntaxhighlight> | |||
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=fichier_outout_printer.pdf | <syntaxhighlight lang="bash" copy> | ||
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=fichier_outout_printer.pdf input.pdf | |||
</syntaxhighlight> | |||
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=fichier_outout_ebook.pdf | <syntaxhighlight lang="bash" copy> | ||
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=fichier_outout_ebook.pdf input.pdf | |||
</syntaxhighlight> | |||
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=fichier_outout_screen.pdf | <syntaxhighlight lang="bash" copy> | ||
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=fichier_outout_screen.pdf input.pdf | |||
</syntaxhighlight> | |||
== Convert img to pdf (img2pdf) == | |||
= | <syntaxhighlight lang="bash" copy> | ||
sudo apt-get install img2pdf | sudo apt-get install img2pdf | ||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash" copy> | |||
img2pdf test.png -o outcome.pdf | img2pdf test.png -o outcome.pdf | ||
</syntaxhighlight> | |||
== Fusionner pdf (pdftk) == | == Fusionner pdf (pdftk) == | ||
<syntaxhighlight lang="bash"> | |||
sudo apt-get install pdftk | sudo apt-get install pdftk | ||
pdftk fichier1.pdf fichier2.pdf cat output fichier3.pdf | pdftk fichier1.pdf fichier2.pdf cat output fichier3.pdf | ||
pdftk mon-document.pdf output mon-document.comprimé.pdf compress | pdftk mon-document.pdf output mon-document.comprimé.pdf compress | ||
</syntaxhighlight> | |||
source https://debian-facile.org/doc:editeurs:pdftk | source https://debian-facile.org/doc:editeurs:pdftk | ||
[[Catégorie:Linux]] | [[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