so in pseudo code
addsometext
modifypagelayout (A4, normal, no margins)
addsomenewtext
modifypagelayout (A4, landscape, margins)
??
The modifypagelayout should come after the added text? And is valid until I change the layout again?
And I can change the pagelayout ad many times I want?
I have gotten some errors when tampering with these settings...
Something goes wrong sometimes, sometimes I get some fatal errors and the document won't open:(