Skip to content

find and replace images with text #1170

Open
@arth17singh

Description

@arth17singh

I have a document with a table which contains text and images both ( one cell can contain both text and images). I need to find a way to find and replace the images in the document with specific text(for example link of the image instead of the actual image) so that I can cover this table to a database and re-render the images through the link. I need to replace the images with the text so that while rendering them again I should get the exact location of the images again. How should this be done using python-docx, as I only able to extract the images using their rid tags but not able to replace them with another text in the original document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions