How can I move page after duplicating it with macro?

asked 2019-05-17 22:29:41 +0200

I have a well formed Draw document. I want to duplicate the first page and move it to last page with macro. I can duplicate it:

Sub Main
    ThisComponent.duplicate(ThisComponent.getDrawPages().getByIndex(0))
End Sub

But I can't move it... Old OpenOffice.org wiki says that is impossible. There is no API for that: "The API does not provide a method to change the position of a page inside a drawing document." Is this true?

edit retag flag offensive close merge delete