PDFium Delphi Component Docs

ViewerPreference Proprietà

Componente: TPdf  ·  Unità: PDFium
Proprietà indicizzata — restituisce il valore intero di una chiave /ViewerPreferences (NumCopies, PrintScaling, ecc.)

Syntax

property ViewerPreference: Integer; // read only

Description

Proprietà indicizzata in sola lettura che restituisce il valore intero di una chiave /ViewerPreferences (NumCopies, PrintScaling, ecc.)

Richiede Active a True. Il risultato è indefinito quando l'indice è fuori dall'intervallo valido; passa valori in 0 .. - 1 (oppure usa la Length dell'array per le varianti senza conteggio)

Il record restituito è uno snapshot del valore al momento della chiamata; le modifiche successive al documento non alterano i record restituiti in precedenza

Remarks

Example

var
  Items: Integer;
begin
  if Pdf1.Active then
  begin
    Items := Pdf1.ViewerPreference;
    Memo1.Lines.Add('count: ' + IntToStr(Length(Items)));
  end;
end;

See Also

PageMode