Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

In the end I am again figured it out by myself ☺ The page style could be set for a paragraph with the property «PageDescName». So I wrote a function in python — it accepts the opened document as a "file", and just changes the style name of the very first paragraph. Works like a charm.

def setFirstPage(file):
    """Sets the first page style to «First Page»"""
    enumeration = file.Text.createEnumeration()
    enumeration.nextElement().PageDescName = 'First Page'