Created
February 22, 2024 11:52
-
-
Save documentprocessing/dad32ac9f0fae1b726bd618351cb30c8 to your computer and use it in GitHub Desktop.
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