Hi,
I have discovered that "Empty Page" template creation is quite broken. The 'viewBox' is always the same, regardless of which page size and orientation are selected. It appears that "empty_page.py" is just pulling in the "default.svg" file and changing the <svg> 'width' and 'height' attributes without changing the 'viewBox' to match. I can patch this but am having trouble with setting attributes within sodipodi:namedview to match.
For example, the following code attempts to simply change the 'id' of sodipoid:namedview:
namedview = root.find(inkex.addNS('namedview', 'sodipodi')) inkex.debug( namedview.get("id") ) namedview.set("id", "NewID" ) inkex.debug( namedview.get("id") )
The debug output shows that the 'id' attribute is changed but if I then examine <namedview> with the XML editor it doesn't show the change.
Any clues as to what is going on would be greatly appreciated.
Tav