Forum How do I...?

Image compression

lee.bourne
Hi,

I've managed to produce a pdf that is a whopping 1.5Gb. Looking inside it it looks like most of the space is taken up by lines such as these:

/XObject <</I11901 6127 0 R
/I11900 6128 0 R
/I11899 6129 0 R
/I11898 6130 0 R
/I11897 6131 0 R
/I11896 6132 0 R
/I11895 6133 0 R
/I11894 6134 0 R
/I11893 6135 0 R
/I11892 6136 0 R

with the /I lines being repeated literally millions of times. Now there are a lot of images in the PDF and that's obviously why it's so big but it looks like the image information should be encoded a little better. Are there any options I can play with? The ones I'm using at the moment are:

/usr/bin/prince --disallow-copy --disallow-annotate --disallow-modify --silent --baseurl=mydir file.html -o file.pdf

Thanks,

Lee
mikeday
What is the total size of the images that are being included in the PDF? Are there really over 12,000 images being used?
lee.bourne
12000 sounds about right, not exactly how I expected our users to be using the system but then users never do...

I'll post again tomorrow but I've realised that I've only got version 6 on my Linux server and that producing the same report on a Windows machine running version 7 resulted in a 250Mb file so just 1/6 of the size.
lee.bourne
Just a quick post to say that after upgrading my Linux box to Prince 7 the report size now matches that of the Windows version so I'm happy with that.

Lee