OdtSaveOptions.MeasureUnit
OdtSaveOptions MeasureUnit property. Allows to specify units of measure to apply to document content. The default value is Centimeters
OdtSaveOptions.MeasureUnit property
Allows to specify units of measure to apply to document content. The default value is Centimeters
public OdtSaveMeasureUnit MeasureUnit { get; set; }
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 specify measure units used in ODT.
OdtSaveOptions odtSaveOptions = new OdtSaveOptions();
odtSaveOptions.MeasureUnit = OdtSaveMeasureUnit.Inches;
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "OdtSaveOptions.MeasureUnit.odt", odtSaveOptions)
.Execute();
See Also
- enum OdtSaveMeasureUnit
- class OdtSaveOptions
- namespace Wordize.Saving
- assembly Wordize