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

ImageCompression Property

Gets/Sets image compression setting.

prnImageCompression ImageCompression { get; set; }



Property ImageCompression As prnImageCompression



def getImageCompression(self)
def setImageCompression(self, value)


prnImageCompression getImageCompression() throws PrinterException
void setImageCompression(prnImageCompression value) throws PrinterException


function getImageCompression() 
function setImageCompression($value) 


BclPrnResult GetImageCompression(BclPrinter* pPrinter,
                                 BclPrnImageCompression* poutVal);
BclPrnResult SetImageCompression(BclPrinter* pPrinter,
                                 BclPrnImageCompression newVal);
Property ImageCompression As prnImageCompression



bepprint -compress jpeg|zip|jpeg2000



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"