-
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
HTML causing unreadable content error message #222
Comments
This probably means your specific HTML is malformed. Please provide a reproducible example, ideally limited to the HTML command in question. |
No problem, I've added the snippet and template used |
Amazing, thanks for all your help! |
Fix released in v4.7.0. Should be on NPM shortly. |
I get the same error when I try to inject more then 2 images with html. (even if I use base64 instead of url)
Environment: |
@gognjanovski I don't think that's related to this issue, because HTML images are treated very differently from image commands using If inserting 2 images works, but more than that gives you an error than this may be a limitation of MS Word instead. |
When a HTML command is present in a template, opening the output document results in message:
"Word found unreadable content in "template.docx". Do you want to recover the contents of this document? If you trust the source of this document, click Yes."
Tested using the HTML example from the README
Example:
Template used
Environment:
docx-templates v4.6.4
Node v14.2.0
Mac OS X v11.4
Thank you
The text was updated successfully, but these errors were encountered: