Home/ Reference/ Page

page.Orientation

Landscape or portrait.

Signature

page.Orientation

Notes

Landscape or portrait.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
page = doc.ActivePage

# 1 = portrait, 2 = landscape (check cdrPageOrientation once per version)
page.Orientation = 2
print("Current size: ", page.SizeWidth, "x", page.SizeHeight)

About this section: Page

Page — pages and page setup.

Other entries in this section