Dynamic Document Generator

Overview

This version is for Appian 23.2 and above. Cloud customers on a lower version of Appian that want to install this plugin should open a support case. Self-managed customers can find the latest jar for Appian 23.1 and lower version in the folder pre-23.2

Convert, merge and generate DOCX, PDF and XML files automatically in an Appian process

Key Features & Functionality

  • PDF from single DOCX with Fonts
    • Convert multiple DOCX files into a single PDF. Please note that the translation from DOCX to PDF is not always 1:1. The template may need to be tweaked or simplified to achieve the desired results.
  • PDF from DOCX without Fonts
    • Convert multiple DOCX files into a single PDF. Please note that the translation from DOCX to PDF is not always 1:1. The template may need to be tweaked or simplified to achieve the desired results. This will not support fonts.
  • PDF from XSL-FO Transformation
    • Uses XSLT to convert an XML to XSL-FO which is then converted to PDF
  • PDF from HTML
    • Converts an HTML document into a single page PDF.
  • PDF from HTML Transformation
    • Uses XSLT to convert an XML to HTML which is then converted to PDF
  • Text Doc from XSLT
    • Uses XSLT to convert an XML to a plain text document (such as HTML, another XML doc, etc).
  • DOCX from XHTML With Styling
    • Converts a valid XHTML file into a DOCX, allowing you to provide your own template file for style reference. Useful for creating dynamic documents that are editable
  • DOCX Merge
    • Merges one or more DOCX files together. If a header or footer exists in any document, they will be removed during the merge process.
    • A configurable separator can be specified: none, line break or page break

Function: xsltransform - Transform source XML using XSL Transform

Anonymous
  • We are getting java.lang.Exception: java.lang.NullPointerException while using pdf from HTML on on environment. on another environment it is working. In the logs also there are no details Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException. The only difference is between OS. one is on OS 7 on which it works and OS 8 on which it isn't. can you please help here? 

  • What is entailed in a Security Update for the plugin? Working through an analysis of the plug in and looking for any additional details as to what is updated as part of the security updates.

  • Thank you Michael for getting back. We are indeed passing the docx file as the existing document, it was working with the previous (admittedly quite old) version of the plugin, it was saving the new version as a pdf. It was not the same smart service though as we were not passing the font files. Looks like we need to change our logic slightly then.

  • The latest version of this plugin uses Batik 1.16. Which version of the plugin are you using?

  • Can you explain how you have configured the smart service? Which document are you passing in as the existing document - are you using the docx that is being converted? 

    If you are setting the Create New Document parameter to false, then you should be supplying a pdf as the Existing Document, it's not meant for converting the input docx to a pdf file (Appian does not allowing changing of a document extension).  The use case for this parameter would be if you were versioning a pdf alongside a versioned docx.

  • Hi,

    I am trying to use the Configure PDF from Single DOCX (with Fonts) function following a plugin upgrade. When I set the "Create New Document" property to false the plugin creates a new version (and the document is converted to a pdf) but the extension strangely remains docx. I do not suppose this is the intended behavior, is there a way to force the extension to change in this scenario?

    With a previous version of the plugin I did not have this problem. Any help would be greatly appreciated thanks.

  • Hi Team,

    We upgraded the Plugin to latest version and we used the smart service " Pdf From Docx (No Fonts)" and we are facing the following issue as shown in the image. The sample docx document that we tried is also attached below. 

    Any assistance on this will be really great.

    Thanks in advance,

    Shankar 

      SampleTestDocument.docx

  • Hi Team,

    We are facing the below vulnerability issues while scanning the plugin. Kindly help to look into it.

    Server-Side Request Forgery (SSRF) vulnerability in Batik of Apache XML Graphics allows an attacker to load a url thru the jar protocol. This issue affects Apache XML Graphics Batik 1.14.

    Server-Side Request Forgery (SSRF) vulnerability in Batik of Apache XML Graphics allows an attacker to fetch external resources. This issue affects Apache XML Graphics Batik 1.14.

    Server-Side Request Forgery (SSRF) vulnerability in Batik of Apache XML Graphics allows an attacker to access files using a Jar url. This issue affects Apache XML Graphics Batik 1.14.

    A vulnerability in Batik of Apache XML Graphics allows an attacker to run untrusted Java code from an SVG. This issue affects Apache XML Graphics prior to 1.16. It is recommended to update to version 1.16.

    A vulnerability in Batik of Apache XML Graphics allows an attacker to run Java code from untrusted SVG via JavaScript. This issue affects Apache XML Graphics prior to 1.16. Users are recommended to upgrade to version 1.16.

    Thanks!

  • Document which I shared in the earlier post itself erroring, but few sample documents are getting passed. I  am guessing it is because bugs in the docx4j library.

    Thanks for your support.

  • Are you able to share any of the docs? Most issues are likely going to be due to bugs in the underlying docx4j library.