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() + "OdtSaveOptions.MeasureUnit.docx");

//Open Office uses centimeters, MS Office uses inches
OdtSaveOptions saveOptions = new OdtSaveOptions();
saveOptions.setMeasureUnit(OdtSaveMeasureUnit.INCHES);

doc.save(getMyDir() + "\\Artifacts\\OdtSaveOptions.MeasureUnit.odt");

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.