|
com.aspose.pdf.utils
Class NumberConverter
java.lang.Object
com.aspose.pdf.utils.NumberConverter
public class NumberConverter - extends java.lang.Object
Encapsulates number converter methods.
|
Method Summary |
static float |
GetMarginValue(java.lang.String stringValueRaw)
Gets length value from a string. |
static java.lang.String |
intToString(int num,
int type)
Converts the int into string as specified by type.
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberConverter
public NumberConverter()
intToString
public static java.lang.String intToString(int num,
int type)
- Converts the int into string as specified by type.
- Parameters:
num - The number to converttype - The type of the string representation of the num.
- Returns:
- The String representation of the num.
- See Also:
HeadingType
GetMarginValue
public static float GetMarginValue(java.lang.String stringValueRaw)
- Gets length value from a string. The string can be "7cm", "5mm", "2pc" etc.
- Parameters:
stringValueRaw - The lenght string.
- Returns:
- A float number that indicates lenght by points.
|