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?