com.aspose.words

Class OdtSaveMeasureUnit

  • java.lang.Object
    • 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 work with units of measure of document content.
Document doc = new Document(getMyDir() + "Rendering.docx");

// Open Office uses centimeters, MS Office uses inches
OdtSaveOptions saveOptions = new OdtSaveOptions();
{
    saveOptions.setMeasureUnit(OdtSaveMeasureUnit.CENTIMETERS);
    saveOptions.isStrictSchema11(doExportToOdt11Specs);
}

doc.save(getArtifactsDir() + "OdtSaveOptions.MeasureUnit.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.