Hello,
You can use the modifyPageLayout method to change page layouts: margins, columns, orientation... The addSection method also allows setting margins and other section properties when creating them.
If you need to do these changes using HTML, you'd need to use HTML Extended, available in Premium licenses.
Regards.