THotPDF.SetPDFVTNodeNames Method
Supplies the /NodeNameList of the PDF/VT document part hierarchy, one name per level, beginning with the level of the node named by /DPartRootNode
Declaration
procedure SetPDFVTNodeNames(const NodeNames: array of AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
NodeNames | One XML NMTOKEN per hierarchy level, for example ['Root', 'Record', 'DocPart'] for the three-level shape Annex C shows |
Usage notes
- ISO 16612-2:2010 §6.5 Table 3 makes
/NodeNameListrequired, soEndDocraises when PDFVTCompliance is set and this method was never called - Every entry has to be an XML NMTOKEN after the ISO 32000-1 7.3.5
#XXescapes are expanded, because Annex D uses the names as XML element names; the test accepts the ASCIINameCharsubset of letters, digits,.,-,_and:, which is narrower than the full XML production and refuses a name this writer cannot verify from anAnsiStringrather than writing it on trust - An incomplete escape at the end of a name, or one whose two characters are not hexadecimal digits, raises with the rule that rejects it
- An empty array raises, because a required key can never be written as an empty list
EndDoccompares the entry count against the number of levels the declared hierarchy actually has, so a list that is too short or too long raises there rather than being written- The names are written as PDF names, so the serialiser canonicalises each one; a name spelled with an escape and the same name spelled literally produce the same entry