ImageEn, unit iexBitmaps

TIOParams.PDF_Compression

TIOParams.PDF_Compression


Declaration

property PDF_Compression: TIOPDFCompression;


Description

Specifies the compression filter for an Adobe PDF file.

Notes:
- This property is only used when saving PDF files natively, e.g. using TImageEnIO.SaveToFilePDF or TImageEnMIO.SaveToFilePDF (and the PDFium PlugIn is disabled). It is NOT used when saving with PDFium
- If your image is monochrome (BitsPerSample and SamplesPerPixel = 1) and you specify compression as ioPDF_JPEG, it will be set to ioPDF_G3FAX2D
- If you are using a TIEMultiBitmap or TImageEnMView, you can use DuplicateCompressionInfo to propogate the parameter to all frames

Default: ioPDF_G4FAX


Example

ImageEnView1.IO.LoadFromFile('D:\input.tif');
ImageEnView1.IO.Params.PDF_Compression := ioPDF_G4FAX;
ImageEnView1.IO.SaveToFile('D:\output.pdf');