THotPDF.ValidatePDFVTDPMKeys

Unit: HPDFDoc

Declaration

procedure ValidatePDFVTDPMKeys(Dict: THPDFDictionaryObject;
  const Path: AnsiString);

Behaviour

Checks ISO 16612-2:2010 §6.6 across a document part metadata dictionary, every dictionary contained in it and every dictionary referenced from it: each key shall be an XML NMTOKEN after # escape expansion, no two keys of one dictionary shall collide after that expansion, and GTS_Managed and GTS_Suspect shall be dictionaries when present

The Path argument names the dictionary location for diagnostics and follows array elements with their index

Recursion is bounded at 32 dictionary levels, because a caller-built object graph may contain a cycle that would otherwise exhaust the stack; AddPDFVTNode applies the same rules when a node is declared

Related APIs

THotPDF.AddPDFVTNode, THotPDF.PDFVTCompliance and THotPDF.SetPDFVTNodeNames