python-docx-template
python-docx-template copied to clipboard
Use a docx as a jinja2 template
I was using your library for my project, and I noticed some typos in the documentation, specifically in the "Sub-documents" section. This is a very useful tool so I want...
Please explain something about this error. I am getting this when I try to render my JSON. There are multiple InlineImage objects in that JSON.
Trying to do something as follows: ``` res = tpl.new_subdoc() current_p = res.add_paragraph() rt = RichText("") rt.add(ele[0], url_id=tpl.build_url_id(ele[1])) r = current_p.add_run(line) r.add_text(rt) ``` But I'm unable to add rich text...
I am trying to replace an image on a document instead of inserting it, since I need the alt text to be populated. The problem is that I trying to...
Hi folks, I am trying to generate a Word equation using MathML. Basically, I inject some MathML code in a variable then creating an alias to this variable in my...
python-docx accepts a file path to a docx file, or a file-like object in it's constructor. It also allows saving to a file-like object. As far as I can tell,...
## Is your feature request related to a problem? Please describe. Currently source code lacks type hints. Adding them can improve convenience of using library and also make library maintenance...
## Describe the solution you'd like Insert an indefinite number of subdocuments into a Word template ## Describe alternatives you've considered I now have two ideas. First, create a blank...
## Describe your problem I want to add the image to a generated docx file. I was read (https://docxtpl.readthedocs.io/en/latest/#inline-image) and look `inline_image_tpl.docx` and `inline_image.py`. But these are not enough for...
## Describe the bug I was dealing with truncated output when rendering large table, I found out it was due to missing values when using dtype `string[pyarrow]` The problem doesn't...