dave-howard / vsdx

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

Feature - VisioFile.add_page() #8

Closed stevensultana closed 3 years ago

stevensultana commented 3 years ago

I've been looking at how an add_page method would need to be implemented. I wrote a proof of concept and pushed it to my fork, but I believe there's still some decisions to be taken before a PR is opened, and also I don't want to conflict with work related to master pages.

Till now the process seems to be:

I think the major decision to be taken is how to go about adding the entry to pages.xml. Currently I'm hard-coding the PageSheet element with default values. Another route is to have a template VSDX file in the package and copy+paste the element from that template (this is similar to how python-docx creates new files).

There are a couple of minor decisions as well:

Further enhancements: