public static class IPdfFileEditor.ContentsResizeValue extends Object
Value of margin or content size specified in percents of default space units. This class is used in ContentsResizeParameters.
Modifier and Type | Method and Description |
---|---|
static IPdfFileEditor.ContentsResizeValue |
auto()
Initializes automatically calculated value.
|
double |
getValue()
Gets specified value.
|
boolean |
isPercent()
Gets true if value is expressed in percents;
False if value is expressed in default units.
|
static IPdfFileEditor.ContentsResizeValue |
percents(double value)
Initializes value in percents.
|
void |
setPercentValue(double value)
Sets value in percents of page size.
|
void |
setUnitValue(double value)
Sets value in default space units.
|
static IPdfFileEditor.ContentsResizeValue |
units(double value)
Initializes value in default space units.
|
public final void setPercentValue(double value)
Sets value in percents of page size.
value
- double valuepublic final void setUnitValue(double value)
Sets value in default space units.
value
- double valuepublic final double getValue()
Gets specified value. Use Unit property to get value units.
public final boolean isPercent()
Gets true if value is expressed in percents; False if value is expressed in default units.
public static IPdfFileEditor.ContentsResizeValue percents(double value)
Initializes value in percents.
value
- Value in percents.public static IPdfFileEditor.ContentsResizeValue units(double value)
Initializes value in default space units.
value
- Value in units.public static IPdfFileEditor.ContentsResizeValue auto()
Initializes automatically calculated value.
Copyright © 2023 Aspose. All Rights Reserved.