Dynamic Document Generator

Overview

This version is for Appian 22.3 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 22.2 and lower version in the folder pre-22.3

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
  • I am using "PDF from XSL FO Transformation" smart service to generate a PDF doc. The workflow is not working as per the requirement when the total characters of the XML Document exceeds approximately 27,000 characters.

    However, in our application, we may have more than 60,000+ characters.

    Any suggestions?

  • Hi All,

    I need to generate PDF from HTML file using PDF from XSL-FO Transformation smart service. Can anyone suggest a way to convert html file into xsl-fo file. in the html file, i need to display table data dynamically and  image in one of the column which will also be shown dynamically. Also, for the text field data in tree structure.

    Any suggestion would be highly appreciated!

  • Hi James,

    the Special characters are not properly appearing when we are trying to convert from word to PDF using pdf from Docx. could you please help us in this

  • Hey Everyone - I'm attempting to use the PDF from HTML Smart Service with a very simple HTML file that includes a base64-encoded image:

    <html>

    <body>

    <div>Image from String: <img src="data:image/jpeg;base64,<MY IMAGE DATA>"/></div>

    </body>

    </html>

    The image is not displaying correctly in the generated PDF. Using the img tag with an internet-available page is also failing. Any advice?

  • Hi James,

    We are using PDF From Docx, plugin we are using special characters to be present in the word and converting them into Pdf. but some of the special characters are not coming as expected but coming as # which is not been recognized... is there any solution for this....

  • v1.6.1 (11/26/18) - Fixed the bug that would throw unrelated error for missing properties file.

  • @Bhaskar - what version of the plugin do you currently have deployed? What version are you trying to update to?

  • James,

    Do we have any solution for the deployment issue mentioned by Bhaskar

  • Hi James,

    We are getting below error when we are trying to deploy it. Could you please help on this

    06:31:12,337 INFO  [stdout] (Appian Plugin Hot Deploy) 2018-09-10 06:31:12,337 [Appian Plugin Hot Deploy] ERROR com.appiancorp.plugins.LoggingPluginEventListener - Failed to enable Plug-in 'Dynamic Document Generator' (DynamicDocumentGen) version 1.5.1: 'There was a problem loading the module descriptor: TextDocFromXslt.<br/>com.appiancorp.suiteapi.common.exceptions.AppianRuntimeException: com.appiancorp.process.admin.IncompatibleSmartServiceRegistrationException: The Smart Service Module was invalid: Illegal attempt to change the data type for smart service DynamicDocumentGen.TextDocFromXslt, input or output named XslParameters (APNX-1-4104-005)'

  • Hi James,

    I could able to generate the DOCX using Doc from template and it is coming perfectly fine with the spaces, line breaks and paragraphs,

    But when i am trying to convert that to PDF using PDF from DOCX it is ignoring the line breaks and paragraphs . Also my document has Header and Footer which are not coming properly.

    Any Idea what can be done for this.

    the sample body which is passing into the ###body### in word is as follows

    ABC</w:t><w:br/><w:t>Sample Org</w:t><w:br/><w:t></w:t><w:br/><w:t></w:t><w:br/><w:t>06/06/2018</w:t><w:br/><w:t></w:t><w:br/><w:t>Dear ABC</w:t><w:br/><w:t></w:t><w:br/><w:t>ABC</w:t><w:br/><w:t></w:t><w:br/><w:t>Our Reference: A-99000/123/456</w:t><w:br/><w:t>EN: 22-22-22-22</w:t><w:br/><w:t>Product: A-99000/231-01</w:t><w:br/><w:t>number: Protocol No -1</w:t><w:br/><w:t>Reason: This is the sample reason</w:t><w:br/><w:t></w:t><w:br/><w:t> this is to populate the values in word which is coming perfectly fine.

    But the end result is PDF.