some image properties not working in html-embedded-in-docx recipe
-
Hello @jan_blaha @bjrmatos
Hope you're doing well,I'm using html-embedded-in-docx recipe for one of my project, In that I have one logo which is dynamic and it can be vary with the different sizes,
So we need to use that in a fix height and width box for ex. the box of 120px*120px the logo should fit and should not stretch.I've tried some
max-width
andmax-height
properties but it's not working in this recipe also theobject-fit:contain
property is also not working.
[Although same properties are working in chrome-pdf recipe but need to use that in docx]https://playground.jsreport.net/w/Heplinesss_17/NfS46D3m
Do we have any ultranet solution for this issue?
Thanks!!
-
Hello,
Can we do anything on this?
Thanks!
-
Unfortunately, we don't have detailed knowledge here.
Technically the recipe uses this package to transform html to some extra format that Word transforms to its ML during the startup. The word isn't a full browser and doesn't support all CSS you provide and that is likely the problem.
Unfortunately, I don't know how to solve this.
-
Thanks! @jan_blaha