-
Notifications
You must be signed in to change notification settings - Fork 71
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
Can't render images on the document #80
Comments
+1 |
+1 as well... |
@eviofragoso could you share more details? Just tried
And seems to be working fine |
Hi folks, any progress on this issue ? I encounter the same, no way to display images even with all the required style and data tags. |
Unfortunately, I don't think we found a solution to this problem using this gem. We ended up parsing the HTML with Nokigiri and building a docx file with caracal. A little more involved, but.... It works! 👍 |
I can confirm that even using the placeholder image code as suggested above by @anitsirc , no images are rendered in the DOCX file output. |
Hi did you find any solution for this yet? |
I'm trying to render images on the docx, but with no success. I even tried with the example in the readme and the images just dont appear.
The image html i'm trying to render is:
<p style='text-align: center;'><img src=\"http://placehold.it/250x100.png\" style=\"width: 250px; height: 100px\"></p>\n
... rest of the html.using this call in the controller:
render docx: "document.docx", content: document_html
I'm using the 1.1.0 version of the gem, with 5.0.2 rails version.
The text was updated successfully, but these errors were encountered: