FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

python-docx/docs/api/enum/WdOrientation.rst at master · Nuva-Org/python-docx · GitHub

Latest commit

 

History

History
23 lines (14 loc) · 339 Bytes

File metadata and controls

23 lines (14 loc) · 339 Bytes

WD_ORIENTATION

alias: WD_ORIENT

Specifies the page layout orientation.

Example:

from docx.enum.section import WD_ORIENT

section = document.sections[-1]
section.orientation = WD_ORIENT.LANDSCAPE

PORTRAIT
Portrait orientation.
LANDSCAPE
Landscape orientation.

Back | FazBrowse Home | New Git URL