PDF/A XMP Extension Schemas
The PDF/A XMP extension-schema registration and custom XMP property helpers follow ISO 19005-1 6.7.8, ISO 19005-2 and -3 6.6.2.3, and the PDF Association TechNote 0008 and 0009 conventions
THotPDF schema authoring
THotPDF.AddPDFAExtensionSchema(Schema, NamespaceURI, Prefix) registers one extension schema and returns its index for the property and value-type calls that follow; a non-empty schema, namespace URI and prefix are required
THotPDF.AddPDFAExtensionProperty(SchemaIndex, Name, ValueType, Category, Description) declares one property of that schema, and THotPDF.AddPDFAExtensionValueType(SchemaIndex, TypeName, NamespaceURI, Prefix, Description) declares a value type returning its index for THotPDF.AddPDFAExtensionField(SchemaIndex, ValueTypeIndex, Name, ValueType, Description)
THotPDF.ClearPDFAExtensionSchemas discards the schemas authored so far
Custom XMP properties
THotPDF.SetCustomXMPProperty(Prefix, NamespaceURI, Name, Value) authors one namespaced custom property, and THotPDF.ClearCustomXMPProperties removes them all
Loaded-document validation
THotPDF.GetLoadedPDFAExtensionSchemas reads the extension schemas of a loaded document back as a THPDFPDFAExtensionSchemaArray, and THotPDF.ValidateLoadedPDFAExtensionSchemas(...), with findings and JSON overloads, runs the bounded TechNote 0008 validation over them through the cross-profile compliance schema
The schema model is typed: a THPDFPDFAExtensionSchema holds THPDFPDFAExtensionProperty and THPDFPDFAExtensionValueType entries in a THPDFPDFAExtensionPropertyArray and a THPDFPDFAExtensionValueTypeArray, each value type carrying THPDFPDFAExtensionField members collected in a THPDFPDFAExtensionFieldArray, and loaded custom properties surface as THPDFCustomXMPProperty records in a THPDFCustomXMPPropertyArray
THotPDF.CustomXMP replaces the generated packet wholesale; these helpers author inside it