-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IMAGE commands in the document body are ignored when a Shape/image is already present in header or footer #217
Comments
I'm having the same issue |
Just to clarify, in my case I'm adding 2 images, a png in the header and a jpg in the body using IMAGE in the same manner as above. The png in the header renders but the jpg in the body doesn't. |
… to skip the first IMAGE command in the template.
… ensure images/shapes in headers and footers are also taken into account.
Should be fixed in https://github.com/guigrpa/docx-templates/releases/tag/v4.6.4. GH Actions should be publishing it to NPM right now. Let me know if you encounter anything weird. Thanks for reporting! |
Many thanks ! It's working like a charm now ! |
Sure ! Here is a very simple template that is failing. I'm using the method injectSvg() that is in the documentation :
7078ebf0-16fe-68d6-0e45-e78a25feb224.docx
(Just replace the
Buffer.from(...)
by the one that is in the documentation)And the generated document :
fail.docx
Originally posted by @matcobat in #144 (comment)
The text was updated successfully, but these errors were encountered: