Compression and downsamling

Compression and downsamling

Forum member · Dec 9, 2005
Hello, I am trying to specify the Document.CompressionLevel property to see which effect it has. I am rendering 4 CMYK TIFF images to the PDF. Each of them is approx. 2.5MB in size. Setting the CompressionLevel property does not have any effect on the output when using Document.Draw overload that writes output to a file. Is there something I am missing? Thanks. Serge

Re: Compression and downsamling

Support · Dec 9, 2005
Hello Serge, The Document.CompressionLevel will only affect the compression level of the page contents such as text. It will not have any effect on image compression. This is because images are treated in a very highly efficient pass through process and they are not resampled. In order to decrease the size of the image within the PDF, you will need to resample the image with an image tool or a separate image library before adding it to the PDF. Thanks, ceTe Software Support Team

Re: Compression and downsamling

Forum member · Dec 9, 2005
I see, thanks. Looks like you're not using GDI+ under the hood. That is good.