_Document

The _Document Field Set is automatically created in any Master Template. This Field Set can be used by the Master Template to define additional properties based on retrieved or derived data. The contents of the _Document Field Set are written in the metadata XML file and exposed to the calling KCM Core scripts.

A metadata XML file can only be generated for Document Template runs that do not have OutputMode set to "pack".

The following command defines the properties CustomerID and OutputFormat.

ASSIGN _Document.CustomerID := _data.Customer.SSN 
ASSIGN _Document.OutputFormat := "PDF//A" 

The contents of the _Document Field Set are written in the <Document> section in the metadata XML file. A typical section is shown here.

<ccm:Document> 
		<ccm:label name="CustomerId">000-00-0000</ccm:label> 
		<ccm:label name="OutputFormat">PDF/A</ccm:label> 
</ccm:Document> 

KCM Core scripts can access the contents through the document_metadata() function.

_Document is a reserved name. You cannot declare any object with this name.