chore(kb/pdf): slightly update process to reduce pdf files size

This commit is contained in:
Michele Cereda
2024-03-08 00:20:01 +01:00
parent 94588abe09
commit 3000166fe2
3 changed files with 11 additions and 0 deletions

View File

@@ -18,6 +18,13 @@ gs -dNOPAUSE -dQUIET -dBATCH \
-sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dCompatibilityLevel=1.4 \
-sOutputFile=path/to/small/file.pdf \
path/to/massive/file.pdf
gs \
-o /path/to/resized.pdf \
-sDEVICE=pdfwrite \
-dPDFFitPage \
-r300x300 \
-g2550x3300 \
/path/to/original.pdf
```
## Reduce the size of PDF files