Master Templates and output

Running a Master Template results in producing the output in different formats. Possible formats are determined at the stage of project channel configuration. See the Kofax Communications Manager Designer Help for more information on configuring projects.

KCM supports the following output formats.

  • Word output: Used for Microsoft Word and can either be in DOCX or DOC format.

    The DOC format has been deprecated in KCM 5.7.0.

  • AiaDocXML output: An output in a custom syntax, intended for further processing.

  • HTML output: Used for emails or for viewing the output in the browser. This output is designed to be self-contained, where styling and images are inlined within the HTML document.

  • PDF output: this output is based on Document Templates. KCM uses the ContractDocToPDF exit point to create the PDF output.

Word and AiaDocXML are native formats and they are produced directly by the Document Template. HTML is a derived format and it is created by transforming AiaDocXML output. This transformation also applies the styling based on the configured Brand and Document Type, similar to the styling of Word output.

Difference between Word and AiaDocXML formats

Word and AiaDocXML output of a Document Template is not created in the same way. Word output is determined by the entire Document Template, while HTML output is derived from AiaDocXML output.

AiaDocXML output is produced only, and entirely, by the WIZARD statements. It consists of all the selected (and possibly edited) Text Blocks, excluding Rich Text Blocks, which are omitted. Text Blocks have the default output and cannot be affected by the TEXTBLOCK parameters, such as SUPPRESS_FINAL_PARAGRAPH.

The WIZARD statements do not produce any Word output. Instead, they produce data that can be turned into Word output with the FOREACH WIZARD/NODE and TEXTBLOCK statements. These statements do not produce any AiaDocXML output.

The following restrictions apply to AiaDocXML output.

  • No output is created from the Master Template and its Includes, only the WIZARD statements.

  • Text Blocks from the WIZARD statements are inserted into the output in a default way, which cannot be affected by the configuration. Consequently, no auto-inserts and SUPPRESS_FINAL_PARAGRAPH are possible.

  • No output is produced for Rich Text Blocks from the WIZARD statements.

  • All Word processor instructions are omitted from the Data Backbone fields in Text Blocks.

The following restrictions apply to AiaDocXML output within the body of custom formatting functions (applied to a Data Backbone field in a Text Block):

  • No output is created for the text mode, such as the text between the hash ("#") symbols.

  • No output is created for control functions and pragmas with the following exceptions:

    • insert_image

    • insert_signature

      Transformation to HTML format treats signatures as plain text.

    • The TextblockTableStyle pragma leads to a different class in the table in HTML output.