property ViewerPreference: Integer; // read only
Indexed read-only property that returns the integer value of a /ViewerPreferences key (NumCopies, PrintScaling, etc.)
Requires Active to be True. The result is undefined when the index is outside the valid range; pass values in 0 .. - 1 (or use the array's Length for non-counted variants).
The returned record is a snapshot of the value at the time of the call; subsequent edits to the document do not modify previously returned records.
var
Items: Integer;
begin
if Pdf1.Active then
begin
Items := Pdf1.ViewerPreference;
Memo1.Lines.Add('count: ' + IntToStr(Length(Items)));
end;
end;