THotPDF.Compression Property
HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THotPDF.Compression

THotPDF

 

Top  Previous  Next

Determines the PDF file compression.

 

type

THPDFCompressionMethod = (cmNone, cmFlateDecode);

 

Delphi syntax:

property Compression: THPDFCompressionMethod;

 

C++ syntax:

__property THPDFCompressionMethod Compression;

 

Description

Use Compression to get or set the PDF file compression. Compression is one of the following values:

 

Value                Meaning


cmNone                PDF file not compressed.

cmFlateDecode        PDF file encoded using the deflate compression method.

 

 

Code Example

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

 

Copyright©2007-2025 losLab.com