Home/ Reference/ Page

page.Next() / page.Previous()

The next and previous page objects, for walking through a document.

Signature

page.Next() / page.Previous()

Notes

The next and previous page objects, for walking through a document.

Python example (runnable)

Requires pywin32. The example assumes app / doc / page / layer are already connected. See Connection & Init
Python
page = doc.Pages.Item(1)

while page is not None:                  # Next() returns None on the last page
    print("Processing: ", page.Name or "Untitled")
    page = page.Next()

About this section: Page

Page — pages and page setup.

Other entries in this section