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  ,

    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.

  •   By 'fix', I assume you are referring to the page numbers not displaying, correct ?  Also as I requested, please update the documentation.

  • Hi  

    Thanks for letting us know. We've got it covered, and the fix will be reflected in the next release.

    Regards,
    Snehasri S.

  • Can someone help document this plugin better ?  Examples in the documentation for various parameters like Page Format Text would help greatly.  Also, though this runs properly for me without errors and generates the PDF, it does not show any page numbers in the PDF though I have specified the Start Page and Start Page Number parameters as 1 each.

    It also seems to be ignoring the CSS that I have in the file and instead seems to be using its own CSS and fonts.