GetPagePieceInfo
Page properties
Description
Reads one private-data value from a page PieceInfo application dictionary
Syntax
Delphi
Function GetPagePieceInfo(PageNumber: Integer; Const AppName, Key: WideString): WideString;Parameters
| PageNumber | One-based page number |
|---|---|
| AppName | Application name under the page /PieceInfo dictionary |
| Key | Entry name inside the application dictionary |
Return values
| Text | Decoded PDF string value or the text of a PDF name value |
|---|---|
| Empty string | No selected document, invalid page, empty AppName or Key, missing entry, unsupported value type or a stored empty string |
Remarks
The lookup does not create dictionaries and only returns values stored as PDF strings or PDF names
An empty result is therefore not sufficient to distinguish a missing entry from a stored empty string
Example
Revision:= PDF.GetPagePieceInfo(1, "Editor", "Rev");