Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 80876

Resizing of base64 images in rich text when used in document generation (PDF)

$
0
0

We are generating reports in our application with a document template that receives part of the document from a rich text input. We are using the CKEditor widget to capture the rich text. Sometimes, the rich text input includes a base64 image, which I can resize in the editor, and have confirmed that the style is applied, but when passed to the document template the original size of the image is used, and sometimes is too large for the document, and therefore is cut off on the right side. When viewing the rich text in the CKEditor viewer, it is resized appropriately per the styling, so I know the style attribute is correct.

I know that the string attribute that is passed to the document template contains the styling by using a breakpoint, but is ignored when the document generator interprets the XHTML. Is there another way to apply styling to the <img> tag within the XHTML, or some way to style it in the document template so that images that are too large are not cut off?


Viewing all articles
Browse latest Browse all 80876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>