THotPDF.ClearPDFVTNodes
Unit: HPDFDoc
Declaration
procedure ClearPDFVTNodes;
Behaviour
Discards every declared document part node, held internally as THPDFDPartNodeArray entries of the record type THPDFDPartNode carrying the parent handle, depth, page range, DPM dictionary and emitted dictionary of each node
Document part metadata dictionaries that AddPDFVTNode took ownership of but EndDoc never emitted are released with the hierarchy, matching what the destructor does when a document closes without emission
Call it to rebuild a hierarchy from scratch before the next EndDoc instead of mixing declarations from two attempts
Related APIs
THotPDF.AddPDFVTNode, THotPDF.PDFVTCompliance and THotPDF.SetPDFVTNodeNames