StructTreeRoot Class Documentation
classStructTreeRootNamespace:com::datalogics::PDFL
Detailed Description
Internal wrapper for the root of a PDF logical structure tree. Owns a non-owning reference to its CDocument. The underlying PDF structure tree is owned by the document; this wrapper provides C++ access to catalog-level struct tree operations (add children, access the backing dict).
Referenced by
Uses types
Member Function Documentation
DisposeChildren
voidDisposeChildren()Returns:
void[static initializer]
static void[static initializer]()addChild
StructElementaddChild(StringstructType)Parameters
structType: String
Returns:
StructElementdelete
synchronized voiddelete(Booleandisposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized voiddelete()Returns:
synchronized voidfinalize
voidfinalize()Returns:
voidfindElementFromID
StructElementfindElementFromID(Stringid)Parameters
id: String
Returns:
StructElementElement whose /ID matches id, or nullptr if none exists.
getDocument
DocumentgetDocument()Returns:
DocumentgetKid
StructElementgetKid(intindex)Parameters
index: int
Returns:
StructElementKid at index. The tree root's /K array is restricted to struct elements (not MCRs / OBJRs), so this always returns an element. Caller owns the returned pointer.
getKidCount
intgetKidCount()Returns:
intgetPDFDict
PDFDictgetPDFDict()