Advanced Document Templating


This plugins allows to generate DOCX files from a DOCX template and an XML data model from Appian. It also allows to convert a DOCX into PDF through an opensource (with limited capabilities) library.

Key Features & Functionality

  • Smart Service to Generate a DOCX from a DOCX Template and an XML data model
  • Smart Service to convert DOCX to PDF through an opensource (with limited capabilities) library
  • v1.1.1 Release Notes
    • Upgraded commons-compress library

  • I need to convert a PDF containing images with embedded text into a document. How can I achieve this task?

  • Can PDF From DOCX be added to documentation?  Any information around using "P D F Options" would be appreciated. 

  • Hi,

    when we generate a word document with an image example:

    {logo: CONS!APP_IMAGE} works perfectly, but when I have more than one image in the template.

    For example logo2 and I call the smart service as follows {logo: CONS!APP_IMAGE, logo2: CON!APP_IMAGE2} I get the following error:

    freemarker.core.NonSequenceOrCollectionException: The value you try to list is an extended_hash+string (fr.opensagres.xdocreport.document.images.ByteArrayImageProvider wrapped into f.e.b.StringModel), thus you must specify two loop variables after the "as"; one for the key, and another for the value, like <#... as k, v>). ---- FTL stack trace ("~" means nesting-related): - Failed at: #list logo as logo [in template "fr.opensagres.xdocreport.document.docx.DocxReport@7f2dbfc!word/document.xml" at line 4, column 6773]

    CV list logo as logo2.docx

    ---- Plugin: Advanced Document Templating Version: 1.1.0 Smart Service: DOCX From Dynamic Template

  • Hi,
    I'm using the "DOCX From Dynamic Template" component from your plugin and I would like to know if is there any way to attach other file type files than images please ?
    (example : pdf, docx,... inside the main generated docx file)

  • PDF from DOCX smart service is unable to convert foreign language Japanese or Chinese using the document generated from the DOCX from Dynamic Template smart service. 

    We have a requirement to collect some application data and to convert to pdf. Our data has Japanese, Chinese and multiple languages. The DOCX from Dynamic Template is successfully generating documents in given languages but when we use the PDF from DOCX / PDF from single DOCX (with fonts) / PDF from multiple DOCX smart services, either other that english characters are skipped or # is used in place. We have updated both Advanced Document Templating and Dynamic Document Generator to the latest version.

    Please can you help with how to get PDF from DOCX that has multiple languages.

  • Hi mandark52, We you able to solve this issue?

  • v1.1.0 Release Notes
    • Updated API usage and license file

  • Plugin: AdvancedDocumentTemplating Version is: 1.0.7
    This plugin is present in Appian Version 21.4.1205.0, we are planning to upgrade Appian version to 23.2 will this plugin with Version: 1.0.7 is supported or need to install any specific version?

  • Hello!

    I've been using the plugin, and everything is fine, but this time, I need a table to be displayed only when it contains information. I've tried using an IF statement within Word, but it seems that when the Appian process model is executed, it doesn't recognize the IF and displays the table.

    Code WORD: 

    { IF "{ MERGEFIELD ${doc.project.showTable}  \* MERGEFORMAT }" = "true" "Table" ""}