Перечисление 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())