Aspose::Words::Saving::OdtSaveOptions::get_IsStrictSchema11 method

OdtSaveOptions::get_IsStrictSchema11 method

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.

bool Aspose::Words::Saving::OdtSaveOptions::get_IsStrictSchema11() const

Examples

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

auto doc = MakeObject<Document>(MyDir + u"Rendering.docx");

auto saveOptions = MakeObject<OdtSaveOptions>();
saveOptions->set_MeasureUnit(OdtSaveMeasureUnit::Centimeters);
saveOptions->set_IsStrictSchema11(exportToOdt11Specs);

doc->Save(ArtifactsDir + u"OdtSaveOptions.Odt11Schema.odt", saveOptions);

See Also