HTML-Renderer icon indicating copy to clipboard operation
HTML-Renderer copied to clipboard

HTML with Images - unwanted image scaling problem

Open Dime358 opened this issue 3 years ago • 1 comments

When HTML contains images they are scaled up by ~20% when converting to PDF.

Image 1: Screenshot 2022-10-05 135628 This is the desired look when generating (taken from HTML template)

Image 2: Screenshot 2022-10-05 135738 This is the result i am getting

When HTML is opened in browser it looks like example 1 as it should be. The < img > tag have height and width attributes and this is occurring every time image is present in the HTML.

Dime358 avatar Oct 05 '22 12:10 Dime358

I vaguely remember reading a similar issue for PDFsharp itself. Might well be that after the latest update this is fixed or when eventually upgrading to PDFsharp 6.x (#221).

eXpl0it3r avatar Dec 08 '25 14:12 eXpl0it3r