HTML to PDF

Overview

Version 1.0.0 - Accepts inline and internal styles and also adds images in the PDF if they are publicly hosted. Based on content, multiple pages will be created in the PDF. The Smart Service will accept HTML files with properly closed tags including <br> and <img> tags otherwise the node will be errored out.

Version 2.0.0 - Everything with Version 1.0.0 and ability to generate PDF from HTML with landscape orientation.

Key Features & Functionality

Inputs

  • Source Document (Document) - The html file to be converted into PDF.
  • New Document Name (Text) - Name for the newly created PDF Document.
  • New Document Desc (Text) - Description of the output PDF Document.
  • Save In Folder (Folder) - Folder to which the output PDF Document to be saved in.

Outputs

  • New Document Created (Document) - The output PDF file.
  • Error Message (Text) - Error message received.
  • Error Occurred (Boolean) - Set to true on the occurrence of error.
Anonymous
  • Hello, did the new version fixed your problem? And did you adjust the width and height in the inputs value? I did that but the content was cut off and the pdf is always a default A4 size.

  • v2.1.9 Release Notes
    • Issue in generating the PDF in landscape mode is fixed
  • Hello Vuram team,

    Version 2.1.6 - generating the pdf in landscape mode perfectly.

    Version 2.1.7 - Failed to generate the pdf in landscape mode, the file was cut off.

    Do you think the version 2.1.8 fix the problem?

    Notes: I used the size with width of 580 and height of 210

    Thanks

  • Issue resolved.

      

    thanks for the help.

  • Hi  ,

    Thaks for reaching out!

    Currently, using the Appian image into the HTML file is not supported in this plugin. Will add this requirement to backlog.

    Regards,
    Vignesh E 

  • Hello everyone,

    I am using this plugin to generate a document for the customer in one of my projects and as part of this document, customer logo also needs to be generated in the document. This is currently achieved by using a img tab in the HTML content and pointing the source to an public webpage where the logo of the customer is available. 

    I would like to know whether there is any feasibility to point to an Appian document rather than pointing to this webpage ? In this case, I can upload the customer logo into my application in cloud environment and then use this document to display the logo in the PDF. 

  • Hi  ,

    Is there is any way to reproduce the same? If yes, kindly share sample inputs for reproducing the issue.

  • I have been using this plugin and achieving productive document results, but have recently encountered an issue in which the generated documents are sometimes not accessible by other nodes in the process once they have supposedly generated. Specifically, I'm getting and End-of-File, expected line at offset 0 error that seems to imply that the created document is empty. However, no error flag is set by the plugin, and the document appears to be correctly generated when looing in the Knowledge Center. Additionally, this is not a consistent bug: sometimes, the documents generate and are manipulated with no issue, and the bug appears to occur at random. Any feedback about what could be causing this issue would be highly appreciated.

  • Hi  ,

    We have tried with sample html file with image and got the output as expected. Please refer to the following files.

    <!DOCTYPE html>
    <html>
    <head>
    </head>
    <body>
    <p><img src="https://tse1.mm.bing.net/th/id/OIP.87rC-vQdkf1I5qv74_2LjwHaHp?rs=1&amp;pid=ImgDetMain" alt="" width="474" height="489" />&nbsp;</p>
    <p><strong>Lorem Ipsum</strong>&nbsp;is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
    </body>
    </html>
    PDF


    Regards,
    Vignesh E

  • not in production but i have used it for some POCs in dev envs and its been well received.