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
Outputs
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 lorenzot0001 ,
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 lorenzon0001 ,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&pid=ImgDetMain" alt="" width="474" height="489" /> </p> <p><strong>Lorem Ipsum</strong> 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>
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?