[python-win32] read word contents including images and font format

Tim Roberts timr at probo.com
Wed Oct 5 18:30:36 CEST 2011


Anthony Mpofu wrote:
>
> I want to read contents from a word document (source) and insert the
> contents to the (destination) word document.
> ...
> The above solution only copies the text content from the source document.
> The read contents loses the original formating (font size, font type)
> The read contents fails to load images from the document.
>
> Is there a method that will allow reading word content with the
> original formatting as well as images.

Do it exactly like you would do it by hand: go through the clipboard,
using Copy and Paste methods.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list