Created
February 22, 2024 11:52
Insert picture in DOCX with Python-dotx library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from docx import Document | |
document = Document() | |
document.add_picture('file-name-of-image.png') | |
document.save('docx with image from file.docx') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment