/ViewerPreferences 名称条目的字符串值property ViewerPreference[const Key: string]: WString; // read only
索引只读属性,返回指定名称的 /ViewerPreferences 条目的值(例如 'NonFullScreenPageMode'、'Direction' 或 'ViewArea')
要求 Active 为 True;目录中不存在该键时返回空字符串
把 PDF 规范中的键名(不带前导斜杠)作为 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;