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
  • Looks like it's an embedded svg and <instream-foreign-object/> that is the problem.   Again, it works in apache fop just not when that code is hosted in this plugin apparently.

  • I've run apache fop 2.5 locally against my xsl-fo and xml and I get my pdf with an embedded svg image but using the same xsl-fo and xml using Appian and this plugin results in a generic java error "An error occurred in executing an Activity Class."  Does this plugin handle embedded images?    

  • Can you confirm that the XslParameter CDT is available? Is it possible that you might have deleted the CDT?

    Note that as of 21.4 Smart service plug-ins now load successfully if the related CDT has the same structure, even if the CDT has a different version number (e.g. it was imported in a package or deleted and recreated)

    The error will go away as long as the XslParameter CDT exists. 

  • Do you know why the iText library is no longer bundled with this plugin?  The missing iText library has broken the 'DOCX from XHTML with Styling' Smart Service.  Can this library be added back to this plugin like it was for version prior to 1.8.6?  We have successfully fixed the broken smart service by creating a custom version of this plugin where the only change is adding iText 2.1.7.  Additionally, we've had success with the latest version of OpenPDF (https://github.com/LibrePDF/OpenPDF) which should serve as a sufficient substitute for iText, assuming that iText was removed due to changes in it's licensing

  • Post upgrading to 21.4  we are getting errors during the startup of the Dynamic Document Generator Plugin. Does anyone have faced similar issues?

    2022-04-15 15:12:04,009 [localhost-startStop-1] ERROR com.atlassian.plugin.manager.DefaultPluginManager - There was an error loading the descriptor 'TextDocFromXslt' of plugin 'DynamicDocumentGen'. Disabling.
    com.atlassian.plugin.PluginException: com.appiancorp.suiteapi.type.exceptions.InvalidTypeException: com.appiancorp.suiteapi.common.exceptions.AppianException: Invalid Type: Unsupported type [Lcom.appiancorp.ps.xmlfo.types.XslParameter; (APNX-1-4047-000)

  • v1.8.7 Release Notes
    • Security Updates
  • Hi Raza, 

    We are using the Docx from XHTML service under the latest version of this plug in, and as mentioned below we are receiving the following error message in the logs:

    Exception in thread "ThreadPoolTaskExecutor-50668" java.lang.NoClassDefFoundError: com/lowagie/text/DocumentException

          at org.docx4j.org.xhtmlrenderer.docx.DocxRenderer.<init>(DocxRenderer.java:160)

          at org.docx4j.org.xhtmlrenderer.docx.DocxRenderer.<init>(DocxRenderer.java:85)

          at org.docx4j.convert.in.xhtml.XHTMLImporterImpl.getRenderer(XHTMLImporterImpl.java:271)

          at org.docx4j.convert.in.xhtml.XHTMLImporterImpl.convert(XHTMLImporterImpl.java:538)

          at com.appiancorp.ps.xmlfo.ss.DocxFromXhtml.runSmartService(DocxFromXhtml.java:49)

    Is there a patch for this issue?

  • Hi,

    We have requirement for converting hebrew language DOCX Document to PDF Document.
    We have tried to convert using "PDF from Single DOCX (with Fonts)" Smart Service.
    But Hebrew Language content is replaced with ### symbol in created PDF Document using this smart service.
    So we created constant, added two hebrew ttf document ("NotoSansHebrew-VariableFont_wdth,wght.ttf","NotoSerifHebrew-VariableFont_wdth,wght.ttf") and added as Font Documents in that Smart Service.
    But still we got the same PDF document with replaced ### symbol.

    Could you please suggest, what kind of font document we need to upload for hebrew language to get original Hebrew Language PDF Document?

  • Yes unfortunately, but it didn't seem to work

  • Hi Raza,

    We are using the PDF from HTML smart service and are needing to show/hide some sections conditionally. 
    However, it does not seem that the HTML style="display: none" is supported.

    Do you know of any other possible ways to show/hide that is supported?

    Thanks in advance.