java.lang.Object
com.aspose.words.MeasurementUnits
public class MeasurementUnits
- extends java.lang.Object
Utility class containing constants.
Specifies the unit of measurement.
Example:
Shows how to make a saved document conform to an older ODT schema.
Document doc = new Document(getMyDir() + "Rendering.docx");
OdtSaveOptions saveOptions = new OdtSaveOptions();
{
saveOptions.setMeasureUnit(OdtSaveMeasureUnit.CENTIMETERS);
saveOptions.isStrictSchema11(exportToOdt11Specs);
}
doc.save(getArtifactsDir() + "OdtSaveOptions.Odt11Schema.odt", saveOptions);
|
Field Summary |
static final int | INCHES = 0 | |
|
Inches.
|
static final int | CENTIMETERS = 1 | |
|
Centimeters.
|
static final int | MILLIMETERS = 2 | |
|
Millimeters.
|
static final int | POINTS = 3 | |
|
Points.
|
static final int | PICAS = 4 | |
|
Picas (commonly used in traditional typewriter font spacing).
|
INCHES = 0 | |
public static final int INCHES |
-
Inches.
CENTIMETERS = 1 | |
public static final int CENTIMETERS |
-
Centimeters.
MILLIMETERS = 2 | |
public static final int MILLIMETERS |
-
Millimeters.
POINTS = 3 | |
public static final int POINTS |
-
Points.
PICAS = 4 | |
public static final int PICAS |
-
Picas (commonly used in traditional typewriter font spacing).
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.