43
Views
4
Comments
[HTML2PDF] Images are not getting rendered on HTML2PDF
Question
html2pdf
Service icon
Forge asset by Miguel Antunes
Application Type
Service

Hai can help some on this. if i added any images on my html content HTML2PDF showing error file

2024-03-22 09-17-23
Chandra Vikas Sharma

Hi Rajesh,

Can you please explain more and share the screenshot what error you are facing. because no issue with this component in added the images i used this in my pojects.  

UserImage.jpg
Rajesh Palaparthi

Hai Vikas,
On this component i used Html as parameter to render on PDF like <div> ... </div>, whenever this div contains any images Pdf file is not generated but when i'm trying to open it showing some error. even css are also not working


2024-03-22 09-17-23
Chandra Vikas Sharma

Hi Rajesh,

Can you add one web block and in that web block you can assign the image and use that.

do not use <div>..</div>

2023-04-16 15-25-31
Krishnanand Pathak

Hi @Rajesh Palaparthi 

As I tried to generate PDF with image using the HTML2PDF it is working fine.
Sharing the oml for reference.
If your case is different please share oml if possible.

Regards
Krishnanand Pathak

HTML_To_PDF_with_Image.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.