Images in Rich Text widget dont render correctly in PDF document generation
When generating a PDF using XHTML generated from the Rich Text Mendix widgets, resized images don't format correctly. The image still displays using its original size despite having its width and height set when double clicking on it in the editor. When the PDF is generated, the other elements respect the new size of the image, but the actual image doesn't resize. This causes major formatting issues in the PDFs. The HTML generated is something like <img src="data:image/png;base64..." style="height: 100px; width: 100px"/> Is there a way I'm missing to make the image resize when the PDF is generated?
You’ll need to find a way to use width and height (values in px) on te img itself instead of inside the style. This will work: