Home/ Reference/ Page

page.SizeWidth

Page width, read/write, in doc.Unit. In the code = 1490/25.4 sets it to 1490 mm.

Signature

page.SizeWidth

Notes

Page width, read/write, in doc.Unit. In the code = 1490/25.4 sets it to 1490 mm.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
page = doc.ActivePage
print("Page width (document units): ", page.SizeWidth)

page.SizeWidth = 210 / 25.4        # set 210mm (document unit is inch here, so divide by 25.4)
print("New page width: ", page.SizeWidth)

About this section: Page

Page — pages and page setup.

Other entries in this section