MeasurementUnits enumeration

MeasurementUnits enumeration

Specifies the unit of measurement.

Members

NameDescription
INCHESInches.
CENTIMETERSCentimeters.
MILLIMETERSMillimeters.
POINTSPoints.
PICASPicas (commonly used in traditional typewriter font spacing).

Examples

Shows how to make a saved document conform to an older ODT schema.

doc = aw.Document(file_name=MY_DIR + 'Rendering.docx')
save_options = aw.saving.OdtSaveOptions()
save_options.measure_unit = aw.saving.OdtSaveMeasureUnit.CENTIMETERS
save_options.is_strict_schema11 = export_to_odt_11_specs
doc.save(file_name=ARTIFACTS_DIR + 'OdtSaveOptions.Odt11Schema.odt', save_options=save_options)

See Also