HTMLToQPDF
HTMLToQPDF copied to clipboard
Embedded CSS doesn't seem to get used
I'm experimenting with creating PDF's from HTML. I have a HTML template which contains a bunch of CSS styles in its
section - and those seems to be totally ignored by HTML-to-QuestPDF.`
I have this same issue as well. I have to have basic css support for my document.
Thank you for sharing your observations 😄
Unfortunately, this is a known limitation of the SVG engine. You can find all limitations listed here: https://www.questpdf.com/api-reference/image.html#svg-support
This issue comes from how SVG is handled in PDF. Because PDF does not natively support the SVG format, the engine must parse the SVG and convert its content into PDF-supported drawing commands, which significantly increases complexity.