is_strict_schema11 property

OdtSaveOptions.is_strict_schema11 property

Specifies whether export should correspond to ODT specification 1.1 strictly. OOo 3.0 displays files correctly when they contain elements and attributes of ODT 1.2. Use “false” for this purpose, or “true” for strict conformity of specification 1.1. The default value is False.

@property
def is_strict_schema11(self) -> bool:
    ...

@is_strict_schema11.setter
def is_strict_schema11(self, value: bool):
    ...

Examples

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

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

See Also