Closed patel-devang closed 3 months ago
Sorry I'm already off for the weekend. I'll look at your question on Monday!
No problem!. Thanks for responding @Aymkdn
This seems more over issue with content. Meaning, when I am passing <p> Simple Testing </p>
it is working fine. But when I am having something like below HTML content, it is failing:
<p>This is Signature Agreement Info<br><span style="color: rgb(255, 0, 0); text-decoration: inherit;"><span style="background-color: rgb(255, 255, 0);">Please read it carefully.</span></span></p>
Update
After debugging more I found that having some inline styles into HTML tag is creating an issue (Like text-decoration: inherit;
). If I remove these inline styles then it is working fine. <p>This is Signature Agreement Info<br><span><span>Please read it carefully.</span></span></p>
These inline styles are coming dynamically so I don't have control on those and I want to show information with those styles.
@Aymkdn let me know if you have idea on this how can I handle it. Thank You!
After debugging more I found that having some inline styles into HTML tag is creating an issue (Like text-decoration: inherit;). If I remove these inline styles then it is working fine.
This is Signature Agreement Info
Please read it carefully.
inherit
is not a valid property for text-decoration
based on the PDFMake documentation.
I've just published a new version (2.5.10) that will verify the text-decoration
property to only accept one of the three properties that work with PDFMake (otherwise it will just ignore the style).
After debugging more I found that having some inline styles into HTML tag is creating an issue (Like text-decoration: inherit;). If I remove these inline styles then it is working fine. This is Signature Agreement InfoPlease read it carefully.
inherit
is not a valid property fortext-decoration
based on the PDFMake documentation.I've just published a new version (2.5.10) that will verify the
text-decoration
property to only accept one of the three properties that work with PDFMake (otherwise it will just ignore the style).
Thank you! It is working fine now.
I want to load HTML content on top and image information below of that in document. Both are different data. My image information is currently in base64 format. So how can I achieve that?
Currently, it is throwing an error when I am calling getBase64(). My goal is combine HTML content and base64 image data and return. Please let me know if I am doing anything wrong here.