/ViewerPreferences 名稱項目的字串值property ViewerPreference[const Key: string]: WString; // read only
索引式唯讀屬性,傳回具名 /ViewerPreferences 項目(例如 'NonFullScreenPageMode'、'Direction' 或 'ViewArea')的值
要求 Active 為 True;目錄中沒有該 key 時傳回空字串
把 PDF 規格的 key 名稱(不加前導斜線)當作 Key 傳入;傳回的 WString 解碼自目錄的 /ViewerPreferences 字典
'HideToolbar'、'HideMenubar'、'HideWindowUI'、'FitWindow'、'CenterWindow'、'DisplayDocTitle'、'NonFullScreenPageMode'、'Direction' 與 'PrintScaling'PrintCopies、PrintPageRanges、PrintPaperHandling 與 PrintScaling
begin
if Pdf1.Active then
Memo1.Lines.Add('Direction = ' + Pdf1.ViewerPreference['Direction']);
end;