BCL easyPDF SDK
easyPDF SDK Usermanual
PDF Creator Programming API  |  Download Free Trial  |  Contact Us to Purchase

ImageCompression Property

Gets/Sets image compression setting.

Type

prnImageCompression

Remarks

If you want a lossless image compression, use PRN_IMAGE_COMPRESS_ZIP (ZIP compression).

ZIP compression is always used for images with 256 colors or less.

Example Usage

Set oPrinter = CreateObject("easyPDF.Printer.8")
Set oPrintJob = oPrinter.PrintJob
Set oPDFSetting = oPrintJob.PDFSetting

oPDFSetting.ImageCompression = PRN_IMAGE_COMPRESS_JPEG
oPDFSetting.ImageQuality = 85
oPDFSetting.ImageDownsizing = True
oPDFSetting.ImageDownsizeResolution = 300

oPrintJob.PrintOut "C:\test\input.doc", "C:\test\output.pdf"