From 9cf471a1fadd465f916bcdc0a33878507c7ddbe5 Mon Sep 17 00:00:00 2001 From: Alban Bronisz Date: Sat, 20 Nov 2021 22:10:27 +0100 Subject: [PATCH] Update --- commandes.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/commandes.md b/commandes.md index 4d1a9be..14f924b 100755 --- a/commandes.md +++ b/commandes.md @@ -4,6 +4,7 @@ PDF [pdftk](https://doc.ubuntu-fr.org/pdftk) +* img > pdf: `convert *.jpg output.pdf` * concat: `pdftk *.pdf cat output tous.pdf` * deconcat: `pdftk input.pdf burst` * deconcat avec prefix: `pdftk input.pdf burst output page_no%d.pdf` @@ -20,12 +21,23 @@ PDF ``` pdftk input.pdf cat 6 2-5 7-9 output sortie.pdf ``` - +* Compression (pour impression) : + ``` + gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sPAPERSIZE=a4 -dFIXEDMEDIA -dPDFFitPage -sOutputFile=output.pdf input.pdf + ``` Images ------ + - Une image +``` +convert -resize 50% image.jpg image.jpg` +``` -`convert -resize 50% image.jpg image.jpg` + - En batch +``` +mkdir tmp +for i in *.JPG ; do convert -resize 1500 "$i" "tmp/$i" ; done +``` Pandoc