Skip to main content

Перечисление PageOrientation

Перечисление PageOrientation содержит варианты ориентации страницы документа. Может быть использована для получения / установки ориентации страниц для секции или документа в методах Section.setPageOrientation(), Section.getPageOrientation().

ЗначениеОписание
PageOrientation_LandscapeАльбомная ориентация
PageOrientation_PortraitКнижная ориентация

Примеры​


block = document.getBlocks().getBlock(0)
section = block.getSection()
section.setPageOrientation(myOfficeSDK.PageOrientation_Portrait)
print(section.getPageOrientation())
sections = document.getSections()
sectionsEnumerator = sections.getEnumerator()
for sectionIndex, section in enumerate(sectionsEnumerator):
section.setPageOrientation(myOfficeSDK.PageOrientation_Portrait)
print(section.getPageOrientation())