THotPDF.Compression Property

 

THotPDF.Compression

THotPDF

 

Вгору  Попередня  Наступна

Determines the PDF file compression.

 

type

THPDFCompressionMethod = (cmNone, cmFlateDecode);

 

Delphi syntax:

property Compression: THPDFCompressionMethod;

 

C++ syntax:

__property THPDFCompressionMethod Compression;

 

Опис

Використовуйте Compression, щоб отримати або встановити compression PDF file Значення Compression наведені нижче:

 

Value                Meaning


cmNone                PDF file not compressed.

cmFlateDecode        PDF file encoded using the deflate compression method.

 

Stacking further size reductions

Compression керує FlateDecode encoding для page content, font і image streams Для додаткової економії на рівні PDF 1.5+ output поєднуйте це з UseXRefStream і UseObjectStreams Найбільше виграють multi-page documents із багатьма dictionaries

 

Code Example

HPDF := THotPDF.Create( nil );
try
  HPDF.FileName := 'c:\Output.pdf';
  HPDF.BeginDoc;                     // Start PDF document creation
  HPDF.CurrentPage.TextOut( 100, 100, 0, 'Hello World!' );
  HPDF.EndDoc;                       // Finish and save PDF document
finally
  HPDF.Free;
end;