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
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
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