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
PdfViewer 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 (if the image is color, it will default to ioPDF_UNCOMPRESSED)
Example
ImageEnView1.IO.LoadFromFile('D:\input.tif');
ImageEnView1.IO.Params.PDF_Compression := ioPDF_G4FAX;
ImageEnView1.IO.SaveToFile('D:\output.pdf');