com.aspose.words
Class OdtSaveMeasureUnit

java.lang.Object
    extended by com.aspose.words.OdtSaveMeasureUnit

public class OdtSaveMeasureUnit 
extends java.lang.Object

Utility class containing constants. Specified units of measure to apply to measurable document content such as shape, widths and other during saving.

Example:

Shows how to use different measurement units to define style parameters of a saved ODT document.
Document doc = new Document(getMyDir() + "Rendering.docx");

// When we export the document to .odt, we can use an OdtSaveOptions object to modify how we save the document.
// We can set the "MeasureUnit" property to "OdtSaveMeasureUnit.Centimeters"
// to define content such as style parameters using the metric system, which Open Office uses. 
// We can set the "MeasureUnit" property to "OdtSaveMeasureUnit.Inches"
// to define content such as style parameters using the imperial system, which Microsoft Word uses.
OdtSaveOptions saveOptions = new OdtSaveOptions();
{
    saveOptions.setMeasureUnit(odtSaveMeasureUnit);
}

doc.save(getArtifactsDir() + "OdtSaveOptions.Odt11Schema.odt", saveOptions);

Field Summary
static final intCENTIMETERS = 0
           Specifies that the document content is saved using centimeters.
static final intINCHES = 1
           Specifies that the document content is saved using inches.
 

Field Detail

CENTIMETERS = 0

public static final int CENTIMETERS
Specifies that the document content is saved using centimeters.

INCHES = 1

public static final int INCHES
Specifies that the document content is saved using inches.

See Also:
          Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
          Aspose.Words Support Forum - our preferred method of support.