GetOptimizeContentStreams
Document properties, Optimisation
Description
Queries whether peephole content stream optimisation is currently enabled
Syntax
Delphi
Function TPDFlib.GetOptimizeContentStreams: Integer;Return values
| 0 | Peephole optimisation is disabled. |
|---|---|
| 1 | Peephole optimisation is enabled (default). |
Remarks
Peephole optimisation simplifies content stream operators to reduce file size. Change this state using SetOptimizeContentStreams
Example
if PDF.GetOptimizeContentStreams = 1 then
Writeln('Content stream optimizer is active');