public final class CosPdfString extends CosPdfPrimitive
This class represents Pdf String object.
| Constructor and Description |
|---|
CosPdfString(String value)
Initializes a new instance of the
CosPdfString class. |
CosPdfString(String value,
boolean isHexadecimal)
Initializes a new instance of the
CosPdfString class. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Determines that the specified object is equal to the current object.
|
String |
getValue()
Gets the string (ANSII).
|
int |
hashCode()
Get hashcode for current object.
|
boolean |
isHexadecimal()
Gets a value indicating whether this instance is hexadecimal.
|
CosPdfString |
toCosPdfString()
Tries cast this instance to
CosPdfString. |
String |
toString()
Returns a
String that represents the current CosPdfString. |
toCosPdfBoolean, toCosPdfDictionary, toCosPdfName, toCosPdfNumberpublic CosPdfString(String value)
Initializes a new instance of the CosPdfString class.
value - The value.public CosPdfString(String value, boolean isHexadecimal)
Initializes a new instance of the CosPdfString class.
value - The string.isHexadecimal - if set to true [is hexadecimal].public final boolean isHexadecimal()
Gets a value indicating whether this instance is hexadecimal.
Value:true if this instance is hexadecimal; otherwise, false.public final String getValue()
Gets the string (ANSII).
Value: The string.public CosPdfString toCosPdfString()
Tries cast this instance to CosPdfString.
toCosPdfString in interface ICosPdfPrimitivetoCosPdfString in class CosPdfPrimitiveCosPdfString else CosPdfString.public String toString()
Returns a String that represents the current CosPdfString.
toString in interface ICosPdfPrimitivetoString in class ObjectString that represents the current CosPdfString.public int hashCode()
Get hashcode for current object.
Copyright © 2025 Aspose. All Rights Reserved.