I have the current document instance. I saw the pageproperties service but I haven’t been able to reference that service.
I tried
context.ServiceManager.createInstanceWithContext("com.sun.star.style.PageProperties", doc)
But it returns None.
Also tried
styles = model.getStyleFamilies()
I can get getStyleFamilies["ParagraphStyles"]
but not PageProperties
.
I would like to get the width and height of the page from writer, draw and any other documents if possible.
Also I would like to know the type of measure that is returned.
Any help is much appreciated to get to this one in Python.