From 9b3fec7dc451b189b222dc1f418af9badbf79df1 Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 28 Aug 2022 15:59:56 -0300 Subject: [PATCH] How to compress pdf files in GNU-linux --- tutorial/compress_pdf.org | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 tutorial/compress_pdf.org diff --git a/tutorial/compress_pdf.org b/tutorial/compress_pdf.org new file mode 100644 index 0000000..cd8215a --- /dev/null +++ b/tutorial/compress_pdf.org @@ -0,0 +1,27 @@ +#+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