You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way currently to create and write into a text box within a word file using python-docx?
I am looking to enter formatted text directly into a text box and potentially even position it at a specific location on the page. Ideally I would like to have the text box have no fill or border as well.
I don't think this is currently supported, see #413. However, if you would like to see it implemented, try to find out what would be minimally required to get this working. A good place to start is creating a textbox in Word, save the file and open it using the SDK tool (Open XML SDK 2.5 Productivity Tool) supplied by Microsoft. This is a powerful tool to see what word is actually doing under the hood.
in the case of the Textbox, I think a place to start would be finding a way for python-docx to accept mc:AlternateContent.
Activity
Benjamin-T commentedon Jul 24, 2018
I don't think this is currently supported, see #413. However, if you would like to see it implemented, try to find out what would be minimally required to get this working. A good place to start is creating a textbox in Word, save the file and open it using the SDK tool (Open XML SDK 2.5 Productivity Tool) supplied by Microsoft. This is a powerful tool to see what word is actually doing under the hood.
in the case of the Textbox, I think a place to start would be finding a way for python-docx to accept mc:AlternateContent.
MattadFelicem commentedon Jul 24, 2018
Thank you for the quick response! However, I am a bit beyond my level of understanding with continuing this.