public class OdtSaveMeasureUnit
Example:
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 int | CENTIMETERS | |
Specifies that the document content is saved using centimeters.
|
||
static final int | INCHES | |
Specifies that the document content is saved using inches.
|