GetCompressionLevel

Document properties, Optimisation

Description

Queries the deflate compression level selected with SetCompressionLevel.

Syntax

Delphi

Function TPDFlib.GetCompressionLevel: Integer;

Return values

0The default engine is in use.
1..9The explicit zlib level currently applied.

Example

if PDF.GetCompressionLevel<> 9 then
  PDF.SetCompressionLevel(9);

See also

SetCompressionLevel, RecompressStreams