Skip to content

Injecting one docx document into another docx document #437

@fatune

Description

@fatune

I can easily modify text of paragraph marked with %main% by using docx with following code.

'''
for paragraph in document.paragraphs:
if '%main%' in paragraph.text:
paragraph.text = 'new text'
'''

However, I would like to inject another piece of formatted docx into this place. Ideally with multiple paragraphs, tables, images, headers and other styles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions