HTMLToQPDF icon indicating copy to clipboard operation
HTMLToQPDF copied to clipboard

Embedded CSS doesn't seem to get used

Open marcscheuner-bfh opened this issue 8 months ago • 2 comments

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.

`

marcscheuner-bfh avatar Mar 22 '25 16:03 marcscheuner-bfh

I have this same issue as well. I have to have basic css support for my document.

ghost avatar May 28 '25 16:05 ghost

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.

MarcinZiabek avatar Jun 06 '25 06:06 MarcinZiabek