bash-tutorial/tutorial/compress_pdf.org

28 lines
655 B
Org Mode
Raw Normal View History

2022-08-28 20:59:56 +02:00
#+options: toc:nil num:nil
* How to reduce the size of a pdf file
** Use libreoffice
Open the file with libreoffice. Then export it as pdf with low resolution to reduce
the file size.
** Use ghostscript
You can use the command ~gs~ to call ghostscript. ghostscript is a PostScript, and PDF language interpreter and previewer.
Let's try to reduce the size of the "cvjb.pdf" and then write it as "output.pdf"
#+begin_example sh
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf cvjb.pdf
#+end_example
** References
Check the manual:
#+begin_example sh
man gs
#+end_example