MCPcopy Index your code
hub / github.com/python-openxml/python-docx / CT_PageSz

Class CT_PageSz

src/docx/oxml/section.py:86–97  ·  view source on GitHub ↗

`` `` element, defining page dimensions and orientation.

Source from the content-addressed store, hash-verified

84
85
86class CT_PageSz(BaseOxmlElement):
87 """``<w:pgSz>`` element, defining page dimensions and orientation."""
88
89 w: Length | None = OptionalAttribute( # pyright: ignore[reportAssignmentType]
90 "w:w", ST_TwipsMeasure
91 )
92 h: Length | None = OptionalAttribute( # pyright: ignore[reportAssignmentType]
93 "w:h", ST_TwipsMeasure
94 )
95 orient: WD_ORIENTATION = OptionalAttribute( # pyright: ignore[reportAssignmentType]
96 "w:orient", WD_ORIENTATION, default=WD_ORIENTATION.PORTRAIT
97 )
98
99
100class CT_SectPr(BaseOxmlElement):

Callers

nothing calls this directly

Calls 1

OptionalAttributeClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…