Conversion Tools ⇒ make PDF file size smaller
-
- Posts: 4
- Joined: Sun Jun 20, 2010 6:23 am
make PDF file size smaller
Hi,
I'm kind of new to Latex, but was still able to write a paper using TexWork software.
Mt problem is that the PDF file I create it too big. For 73 pages with some figures (just 10 kb png files) it's about 800 kb.
I need it to be much smaller, even if it reduce the resolution of it. I saw some codes to convert it, but not sure how to use them, the way I created the PDF was with the TexWork feature.
It's very urgent.
Thank you very much,
D.
I'm kind of new to Latex, but was still able to write a paper using TexWork software.
Mt problem is that the PDF file I create it too big. For 73 pages with some figures (just 10 kb png files) it's about 800 kb.
I need it to be much smaller, even if it reduce the resolution of it. I saw some codes to convert it, but not sure how to use them, the way I created the PDF was with the TexWork feature.
It's very urgent.
Thank you very much,
D.
NEW: TikZ book now 40% off at Amazon.com for a short time.
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
make PDF file size smaller
TeX can't make the images smaller, although there is some compression to be hand in the way the PDF is constructed internally. At the start of your file adding
will get pdfLaTeX to use more compression of certain aspects of the file. This may or may not make a difference: it depends on the file structure.
To make the images smaller you'll need to use an external program. You don't say how big they are to start with, so quite how effective this will be is again unclear. On Windows, I'd go for IrfanView: not so sure about other platforms. It can do things like resize images and resample to reduce resolution.
Code: Select all
\pdfminorversion=5
\pdfcompresslevel=9
\pdfobjcompresslevel=2
To make the images smaller you'll need to use an external program. You don't say how big they are to start with, so quite how effective this will be is again unclear. On Windows, I'd go for IrfanView: not so sure about other platforms. It can do things like resize images and resample to reduce resolution.
Joseph Wright
-
- Posts: 4
- Joined: Sun Jun 20, 2010 6:23 am
Re: make PDF file size smaller
hi,
the figures are graphs i created with matlab, there are 16 figures, each of them is about 10-15kb.
i used the code you gave me, it reduced the file from 854kb to 790kb.
I tries to take all the figures out and then the file is 470kb - with the code.
Is there a code to compress the file even more?
thanks
the figures are graphs i created with matlab, there are 16 figures, each of them is about 10-15kb.
i used the code you gave me, it reduced the file from 854kb to 790kb.
I tries to take all the figures out and then the file is 470kb - with the code.
Is there a code to compress the file even more?
thanks
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
make PDF file size smaller
Try a small tool to save your graphs directly as PDF [1]. Perhaps this can help.
As soon as the problem is orted out, please act according to Section 3 of the Board Rules.
[1] MATLAB Central - File detail - save2pdf
Best regards and welcome to the board
Thorsten
As soon as the problem is orted out, please act according to Section 3 of the Board Rules.
[1] MATLAB Central - File detail - save2pdf
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 4
- Joined: Sun Jun 20, 2010 6:23 am
Re: make PDF file size smaller
i don't think that the graphs are the problem, because as i said, without them, the file is still about 500kb.
Is is possible to compress it more?
thanks
Is is possible to compress it more?
thanks
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: make PDF file size smaller
Your file size sounds about right to me. I quickly checked my files: I get about 440 kbi for a 93 page file which is purely text with no complex formatting. Zipping using either .zip or .bz2 only drops it to about 420 kbi, so there really is not much "fat" in the file. I doubt you'll get very far looking for more compression
Joseph Wright
-
- Posts: 4
- Joined: Sun Jun 20, 2010 6:23 am
Re: make PDF file size smaller
i'm not sure if there is a resolution for a text, but if there is, then is it possible to reduce the resolution, so the file will be smaller?
thanks
thanks
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
make PDF file size smaller
No. PDF files don't store the text as bitmaps, but as text plus the relevant font information. So you have 70+ pages of text which is in the PDF. Just the text itself needs quite a bit of space before you include fonts, data structures, etc.
Joseph Wright
Re: make PDF file size smaller
You may try to use one of the standard pdf fonts like times or palatino (if you haven't done that already). Standard fonts are a part of pdf specs and should not require embedding but I'm not sure how much space that can save (probably not that much).
Cheers,
Tomek
Cheers,
Tomek