GetPagePieceInfo
頁面內容
描述
從頁面 PieceInfo 應用程式字典讀取一個私有資料值
語法
Delphi
Function GetPagePieceInfo(PageNumber: Integer; Const AppName, Key: WideString): WideString;參數
| PageNumber | 從 1 起算的頁碼 |
|---|---|
| AppName | 頁面 /PieceInfo 字典下的應用程式名稱 |
| Key | 應用程式字典內的項目名稱 |
傳回值
| Text | 解碼後的 PDF 字串值,或 PDF 名稱值的文字 |
|---|---|
| 空字串 | 沒有選取的文件、頁面無效、AppName 或 Key 為空、項目遺失、值類型不支援,或儲存的是空字串 |
備註
查閱不會建立字典,且只傳回以 PDF 字串或 PDF 名稱儲存的值因此空結果不足以區分項目遺失與儲存了空字串
範例
Revision:= PDF.GetPagePieceInfo(1, "Editor", "Rev");