dave-howard / vsdx

vsdx - A python library for processing .vsdx files
BSD 3-Clause "New" or "Revised" License
70 stars 25 forks source link

replace texts in a .vsdx-file #1

Closed GearsChen closed 3 years ago

GearsChen commented 3 years ago

Hi Mr. Howard,

could you please post a small example of replacing some text in a .vsdx-file?

For example, replacing the text "dog" in a square with "cat".

Best regards GC

dave-howard commented 3 years ago

Hi GC - That's a sensible use case so I have added a find_replace() method to Page and Shape classes, as well as a new test showing how to use. Hopefully suits your needs, Dave