Theses, Books, Title pagesHow to reduce file size of PDF output while compile with pdflatex

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

How to reduce file size of PDF output while compile with pdflatex

Post by rais »

Hi byn,
some time ago, this report was made, matching your error and gs version.

Before you can upgrade ghostscript you may need to upgrade cygwin...come to think of it, if you upgrade cygwin it may come with a newer ghostscript anyway.

KR
Rainer

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

byn
Posts: 56
Joined: Fri Jun 10, 2022 12:27 pm

How to reduce file size of PDF output while compile with pdflatex

Post by byn »

Hi Rais,

It works! Thanks, but for a file size of about 90MB, it can only reduce to about 84MB, how can you further reduce it to about 5MB?

Byn.
user22741
Posts: 35
Joined: Fri Nov 09, 2018 12:03 pm

Re: How to reduce file size of PDF output while compile with pdflatex

Post by user22741 »

Use high compression in LaTeX (e.g., \pdfcompresslevel=9 and \pdfobjcompresslevel=2), optimize or compress large images,

Code: Select all

gswin64c -dCompatibilityLevel=1.5 \
         -dPDFSETTINGS=/ebook \
         -dNOPAUSE -dQUIET -dBATCH \
         -sDEVICE=pdfwrite \
         -sOutputFile=out.pdf in.pdf
run Ghostscript or a third-party online like PDF Compressor to shrink your PDF further.
Post Reply