python-docx-template icon indicating copy to clipboard operation
python-docx-template copied to clipboard

Use a docx as a jinja2 template

Results 169 python-docx-template issues
Sort by recently updated
recently updated
newest added

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...

help wanted

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...

Request for enhancement

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,...

help wanted

## 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...

Request for enhancement

## 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...

Request for enhancement

## 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...

help wanted

## 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...

bug