Generalreduce the size of PDF output document

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
fatra2
Posts: 126
Joined: Fri May 01, 2009 1:43 pm

reduce the size of PDF output document

Post by fatra2 »

Hello,

I have simple question, with probably a not so simple answer. I wrote a few documents (in LaTeX of course) in "report" class. I included some images (jpeg essentially), some links and the whole chabang. I compile these documents, only to notice that they are quite voluminous. I have one with ~20 pages, that takes more than 2MB.

My question is the following: is there anything I can do to reduce the size of these documents???

Cheers

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

reduce the size of PDF output document

Post by localghost »

The size of the resulting PDF file depends on several things. One of them is the PDF version. The current TeX Live 2010 (and as far as I know also MiKTeX 2.9) produces PDF1.5 which should result in smaller files. But since there are quite a lot images in your document, you may adjust the compress level. Some lines in the preamble might do the trick

Code: Select all

\pdfminorversion=5
\pdfobjcompresslevel=2
The first line is only needed for former versions of the above mentioned TeX distributions. But don't expect too much. The possible decrease is about 20%. For further details take a look at the PDFTeX manual (Table 2).


Thorsten
Post Reply