OdtSaveOptionsMeasureUnit Property

Allows to specify units of measure to apply to document content. The default value is Centimeters

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public OdtSaveMeasureUnit MeasureUnit { get; set; }

Property Value

Type: OdtSaveMeasureUnit
Remarks
Open Office uses centimeters when specifying lengths, widths and other measurable formatting and content properties in documents whereas MS Office uses inches.
Examples
Shows how to work with units of measure of document content.
Document doc = new Document(MyDir + "Rendering.docx");

// Open Office uses centimeters, MS Office uses inches
OdtSaveOptions saveOptions = new OdtSaveOptions
{
    MeasureUnit = OdtSaveMeasureUnit.Inches,
    IsStrictSchema11 = true
};

doc.Save(ArtifactsDir + "OdtSaveOptions.MeasureUnit.odt", saveOptions);
See Also