Метод Section:setPageOrientation
Метод задает ориентацию страниц раздела.
Пример
local section = document:getBlocks():getBlock(0):getSection()
section:setPageOrientation(DocumentAPI.PageOrientation_Landscape)
local orientation = section:getPageOrientation()
print(orientation)