This commit is contained in:
Alban Bronisz 2021-11-20 22:10:27 +01:00
parent a06181b83c
commit 9cf471a1fa
1 changed files with 14 additions and 2 deletions

View File

@ -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