DocxImage in footer
-
Hello,
I'm having a little problem. I'm trying to create a template with four different sections. In each of these four sections, I have a footer in which I put an image with a docxImage tag whose src points to the same image for all four. But when I generate the file, it tells me that there is unreadable content, so I can't export the Word document to PDF. I know the error is coming from the footers because if I remove them, I no longer have the problem.
Thanks in advance.
-
hi @ValentinCerfaux can you share an export of your template? that would help to verify what is wrong.
-
This post is deleted!
-
When I try to import a jsreport export it tells me that I don't have enough privileges to do that
-
Please share a link to a onedrive, dropbox, googledrive...
-
Here is the link to the jsreport export with a simplified template with just the footers
https://we.tl/t-c9vW8prrMR
-
thank you @ValentinCerfaux, i can replicate the problem with your export, we are going to take a look.
-
@bjrmatos, did you find something about this bug?
-
@ValentinCerfaux yes, the fix is going to be part of next release.
-
That’s a classic challenge with Word-based reporting. Usually, when images aren't showing up in the footer, it’s because the docxImage helper is struggling with the specific scope of the footer part in the XML.
One thing that often helps is making sure the image data is already fully resolved in your data object before the rendering starts. Also, double-check that you're using a relatively small image file - sometimes the footer container in Word is a bit more sensitive to large base64 strings than the main body is. If you've already tried that, sometimes wrapping the image in a fixed-size table cell in the footer can help "force" the rendering engine to reserve the space properly!