PDFium Delphi Component Docs

ViewerPreference 屬性

元件: TPdf  ·  單元: PDFium
索引屬性 — 傳回文件目錄中 /ViewerPreferences 名稱項目的字串值

語法

property ViewerPreference[const Key: string]: WString; // read only

說明

索引式唯讀屬性,傳回具名 /ViewerPreferences 項目(例如 'NonFullScreenPageMode'、'Direction' 或 'ViewArea')的值

要求 Active 為 True;目錄中沒有該 key 時傳回空字串

把 PDF 規格的 key 名稱(不加前導斜線)當作 Key 傳入;傳回的 WString 解碼自目錄的 /ViewerPreferences 字典

備註

範例

begin
  if Pdf1.Active then
    Memo1.Lines.Add('Direction = ' + Pdf1.ViewerPreference['Direction']);
end;

另請參閱

PageMode