util Module¶
Utility functions and classes.
- class pptx.util.Length(emu)[source]¶
Bases:
intBase class for length classes Inches, Emu, Cm, Mm, Pt, and Px. Provides properties for converting length values to convenient units.
- property inches¶
Floating point length in inches
- property centipoints¶
Integer length in hundredths of a point (1/7200 inch). Used internally because PowerPoint stores font size in centipoints.
- property cm¶
Floating point length in centimeters
- property emu¶
Integer length in English Metric Units
- property mm¶
Floating point length in millimeters
- property pt¶
Floating point length in points
- class pptx.util.Centipoints(centipoints)[source]¶
Bases:
LengthConvenience constructor for length in hundredths of a point