HTML to PDF

Overview

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 introduces the 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
  • 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. 

  • Hi Mohammed, thank you for your reply. I don't think they are stored in our email server since if I retrieve the url of the image from the html and paste it in a browser window, the image appears.

    The way the image is embedded in the html is the following:

    <img src="">https://imageurl.jpg" width="74" height="74" alt="altText" style="border-radius: 50%;">

    Also, the font of the original html document is not preserved in the PDF. Is there a way to preserve it?

    Thank you.

  • Hi HTML to PDF users!

    We'd like to know: Are there are any US government customers using this plug-in?   

  • Hi  ,

    The images might be included as link in the HTML whereas the actual image might be stored in your email server. Images stored in the email server cannot be accessed by our smart service due to security reasons implemented by the email server.

    Thanks.

  • Hi team,

    we are evaluating to use this plugin to convert html documents (that are basically emails) to PDF. We obtained a good result regarding the text but the images were not rendered in the output PDF.

    What could be the reason for this? Is there a way to make it work?

    Thank you.