THotPDF.GetLoadedNameTree Method

Fetches a name-tree category dictionary held in the loaded document's catalog /Names dictionary, creating it on first use if you ask it to

Declaration

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

Unit

HPDFDoc

Parameters

NamePurpose
CategoryThe category key of the name tree within the catalog /Names dictionary — Dests, JavaScript or EmbeddedFiles, for instance
CreateMissingPass True and either dictionary that is missing — the /Names dictionary or the category dictionary — is created as a new indirect object; pass False and you get nil back instead

Return value

The category dictionary once resolved; nil comes back where it is missing and CreateMissing is False, or where the document carries no loaded catalog

Usage notes

Related APIs