THotPDF.GetLoadedNameTree Method

Returns the loaded document's name-tree category dictionary from the catalog /Names dictionary, optionally creating it on first use

Declaration

function GetLoadedNameTree(const Category: AnsiString;
  CreateMissing: boolean): THPDFDictionaryObject;

Unit

HPDFDoc

Parameters

NamePurpose
CategoryName-tree category key in the catalog /Names dictionary, for example Dests, JavaScript, or EmbeddedFiles
CreateMissingTrue to create the /Names dictionary and the category dictionary as new indirect objects when either is absent; False to return nil instead

Return value

The resolved category dictionary, or nil when it is missing and CreateMissing is False, or when the document has no loaded catalog

Usage notes

Related APIs