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 and max-height properties but it's not working in this recipe also the object-fit:contain property is also not working.
    [Although same properties are working in chrome-pdf recipe but need to use that in docx]

    Do we have any ultranet solution for this issue?


  • Hello,

    Can we do anything on this?


  • 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

Log in to reply

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.