Graphics, Figures & TablesPS file HUGE due to background ima; Have an idea please help

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Faust
Posts: 55
Joined: Thu Oct 29, 2009 12:45 pm

PS file HUGE due to background ima; Have an idea please help

Post by Faust »

Ok this is the thing: I'm using the path Latex=>PS=>PDF to be able to use Pstricks etc.

Also, I'm using a sort of watermark figure as background for my pages (made with photoshop). Result is, of course, that in the processing of the PS file this figure is placed on every page. Having around 25 pages this resulted in a whopping 1.4 gb ps file! ! ! Leaving the background out reduces it to about 90 mb.

So I've read that 'cause PS is a script, I can tell it to print a certain thing x times. So I used the savebox command, and later use it. This didnt reduce the file size though, any suggestions?

This is my code:

\newsavebox\mygraphicone
\sbox\mygraphicone{\includegraphics{eps/backgroundeven.eps}}


\newsavebox\mygraphictwo
\sbox\mygraphictwo{\includegraphics{eps/backgroundoneven.eps}}

\leftwatermark{\put(-166,-742.7){\usebox{\mygraphicone}}}

\rightwatermark{\put(-94,-742.7){\usebox{\mygraphictwo}}}

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

PS file HUGE due to background ima; Have an idea please help

Post by localghost »

I think the graphicx-psmin package can help.


Best regards
Thorsten
Faust
Posts: 55
Joined: Thu Oct 29, 2009 12:45 pm

Re: PS file HUGE due to background ima; Have an idea please help

Post by Faust »

wow right on the spot. That worked. 'only' 188 mb now. PDF is 6mb.

2 more questions:
1)Any other options to reduce the PS size?
2)Is there quality loss between latex=>PS=>pdf compared to latex=>pdf.
The latted one produces a larger pdf (about 10 mb).

Thanks for the wonderful help!
Post Reply