java.lang.Object | |
↳ | com.pspdfkit.document.PdfValue |
This represents a value stored inside a PDF document stream. The PDF has a few different data
types of values that are reasonably interchangeable. The type can be retrieved with getType()
and can be one of PdfValue.PdfValueType
.
When creating a new value, the type will be automatically set depending on the constructor parameter.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | PdfValue.PdfValueType | Type of a value stored in the PDF document stream. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PdfValue(long longValue)
Creates a new PDF value of
INTEGER type. | |||||||||||
PdfValue(double doubleValue)
Creates a new PDF value of
DOUBLE type. | |||||||||||
PdfValue(boolean booleanValue)
Creates a new PDF value of
BOOLEAN type. | |||||||||||
PdfValue(String stringValue)
Creates a new PDF value of
STRING type. | |||||||||||
PdfValue(List<PdfValue> listValue)
Creates a new PDF value of
ARRAY type. | |||||||||||
PdfValue(Map<String, PdfValue> mapValue)
Creates a new PDF value of
DICTIONARY type. | |||||||||||
PdfValue()
Creates a new PDF value of
NULLOBJ type. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
List<PdfValue> | getArray() | ||||||||||
boolean |
getBoolean()
Gets the stored
Boolean value or false if the value isn't a boolean. | ||||||||||
Map<String, PdfValue> | getDictionary() | ||||||||||
double |
getDouble()
Gets the stored Double value or 0.0 if the value isn't a double.
| ||||||||||
long |
getLong()
Gets the stored
Long value or 0 if the value isn't an integer. | ||||||||||
String |
getString()
Gets the stored
String value or null if the value isn't a string. | ||||||||||
PdfValue.PdfValueType |
getType()
Gets the type of this
PdfValue , which is one of PdfValue.PdfValueType . | ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Gets the stored Boolean
value or false if the value isn't a boolean.
Gets the stored Double value or 0.0 if the value isn't a double.
Gets the stored Long
value or 0 if the value isn't an integer.
Gets the stored String
value or null if the value isn't a string.
Gets the type of this PdfValue
, which is one of PdfValue.PdfValueType
.
PdfValue.PdfValueType
.