THotPDF.GetLoadedOutputIntentInfo Method
Reads the output intent (OutputIntent) metadata of the loaded PDF document, including the registry name, output condition identifier, and description information
Declaration
function GetLoadedOutputIntentInfo(out ARegistryName: AnsiString; out AOutputConditionId: AnsiString; out AInfo: AnsiString): boolean;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
ARegistryName | Output parameter, receives the name string of the colour profile registration authority |
AOutputConditionId | Output parameter, receives the identifier string of the standard output condition |
Return value
Returns True if the document has an OutputIntent entry and it was read successfully
Usage notes
- Only call this method after a PDF document has been loaded successfully; it returns False when no document is loaded
- OutputIntent is commonly found in PDF/A and PDF/X compliant documents; standard PDFs may not contain this entry
- The returned string is of type AnsiString; if the source document uses Unicode encoding to store this field, please perform an encoding conversion before use