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
  • PDF from HTML has stopped working for us also since the 19.1 upgrade.  Has anyone been able to find more information on this yet?  ?

    2019-05-01 16:33:36,676 [ThreadPoolTaskExecutor-16815] ERROR com.appiancorp.process.workpoller.WorkItemListener - The following exception occurred while attempting to complete work item [(WorkId: 383, WorkType: {Process Id:740474,Point Id:163774} Activity Metadata:{Id:163774,ACPs:{ActivityClassParameter[name=HtmlDocument,it=13,v=674956],ActivityClassParameter[name=CreateNewDocument,it=26,v=1],ActivityClassParameter[name=NewDocumentName,it=3,v=Test PDF from HTML (new)],ActivityClassParameter[name=NewDocumentDesc,it=3,v=],ActivityClassParameter[name=SaveInFolder,it=12,v=279579],ActivityClassParameter[name=ExistingDocument,it=13,v=<null>],ActivityClassParameter[name=PauseOnError,it=26,v=1]},ARVs:{ActivityReturnVariable[name=ErrorOccurred,it=26,v=<null>],ActivityReturnVariable[name=ErrorText,it=3,v=],ActivityReturnVariable[name=NewDocumentCreated,it=13,v=<null>]}}, Response: null, ServerName: execution00)] - Exception: 
    javax.resource.spi.work.WorkCompletedException: java.lang.NoClassDefFoundError: Could not initialize class javax.swing.RepaintManager
    	at org.springframework.jca.work.SimpleTaskWorkManager$DelegatingWorkAdapter.run(SimpleTaskWorkManager.java:247)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    	at java.lang.Thread.run(Thread.java:748)
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class javax.swing.RepaintManager
    	at javax.swing.JComponent.repaint(JComponent.java:4792)
    	at java.awt.Component.repaint(Component.java:3311)
    	...

  • adding error log for the above issue - 

    It appears that the relevant error is: javax.resource.spi.work.WorkCompletedException: java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper at org.springframework.jca.work.SimpleTaskWorkManager$DelegatingWorkAdapter.run(SimpleTaskWorkManager.java:247) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:807) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:886) at javax.swing.RepaintManager.<clinit>(RepaintManager.java:238) at javax.swing.JComponent.repaint(JComponent.java:4792) at java.awt.Component.repaint(Component.java:3311) at javax.swing.text.JTextComponent.setEditable(JTextComponent.java:1758) at javax.swing.text.JTextComponent.<init>(JTextComponent.java:309) at javax.swing.JEditorPane.<init>(JEditorPane.java:196) at com.appiancorp.ps.xmlfo.util.XmlFoConverter.fromHtmlToPdf(XmlFoConverter.java:127) at com.appiancorp.ps.xmlfo.ss.PdfFromHtml.runSmartService(PdfFromHtml.java:30) ... ... 3 more Exception in thread "ThreadPoolTaskExecutor-6028" java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper You will need to follow up with the creator of the plugin to get this resolved, as the issue appears to be with the plugin itself. The status for this case has been changed to Pending User by Tristan Newmann. 15 April 2019 11:32 PM

  • Hi We are using PDF from HTML smart service and it was working fine till 18.4 version. and it stopped working after 19.1 upgrade. I have checked with Appian support team and they confirmed that error due to plugin issue and asked me to check with plugin author.  

  • Hello Anushrid, 

    are you storing the xml in a variable? if that is the case would you be able to pass the xml directly to the node and don't store it into a variable or at least put it as hidden? (i would prefer not to have the variable)

    I would recommend as well to create the xml using a nested CDT Structure and then use the toxml function directly in the node. 

    hope this helps

    Jose 

  • This comment was deleted.
  • 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!