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
Parents
  • 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.

  • 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  ,

    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

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

Comment
  • 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.

Children
  • 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