HTMLToQPDF icon indicating copy to clipboard operation
HTMLToQPDF copied to clipboard

HTMLtoQuestPDF "cannot decode the provided image"

Open marcscheuner-bfh opened this issue 10 months ago • 0 comments

My HTML template also includes an "embedded" SVG image, provided by a base64 encoded string.

<img src="data:image/svg+xml;base64,....(long list of bytes in hex form)......"
            alt="BFH Logo"
            height="160"
            class="bfh-logo">

When trying to render this with Html-to-QuestPDF, I get this exception:

QuestPDF.Drawing.Exceptions.DocumentComposeException
Message=Cannot decode the provided image.

Any idea why this doesn't work? Another image provided the very same way works fine ....

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