GetLastSaveUsedObjectStreams

Document properties, Optimisation

Description

Checks whether the last save operation actually compressed objects into object streams.

Syntax

Delphi

Function TPDFlib.GetLastSaveUsedObjectStreams: Integer;

Return values

0Object streams were not used in the last save.
1Object streams were used in the last save.

Remarks

A return value of 1 means that the last save wrote actual /ObjStm containers and type 2 member entries, not merely an xref stream. Object streams are only used if the setting is enabled via SetPackObjectStreams and the document version is PDF 1.5 or newer.

Example

PDF.SaveToFile('output.pdf');
if PDF.GetLastSaveUsedObjectStreams = 1 then
  Writeln('Save was packed into object streams.');

See also

SetPackObjectStreams, GetPackObjectStreams