Skip to content
Advertisement

Tag: border

Specify border appearance in tables using python-docx

I am going through the tutorial and documentation of python-docx. However, I can’t find any reference to how I can specify and manipulate the border appearance of a table created in a Microsoft Word document. When i use the following code: The resulting docx file shows the 3×3 table with header. Currently there is no black border (inner or outer)

Adding a border to and Image in my code

Help, I need to put a border on the image displayed from the code below. How do I do this? The code below pulls up the image, and now i need a border. Help.. All of this code is Python Answer Just create a slightly larger array that is black and fill the central pixels with your image.

Advertisement