Class PdfBoolean
java.lang.Object
com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfObject
com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfBoolean
PdfBoolean
is the boolean object represented by the keywords true or false.
This object is described in the 'Portable Document Format Reference Manual version 1.3' section 4.2 (page 37).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
A possible value ofPdfBoolean
static final PdfBoolean
static final PdfBoolean
static final String
A possible value ofPdfBoolean
private boolean
the boolean value of this object -
Constructor Summary
ConstructorsConstructorDescriptionPdfBoolean
(boolean value) Constructs aPdfBoolean
-object.PdfBoolean
(String value) Constructs aPdfBoolean
-object. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the primitive value of thePdfBoolean
-object.Methods inherited from class com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, toPdf, toString, type
-
Field Details
-
PDFTRUE
-
PDFFALSE
-
TRUE
A possible value ofPdfBoolean
- See Also:
-
FALSE
A possible value ofPdfBoolean
- See Also:
-
value
private boolean valuethe boolean value of this object
-
-
Constructor Details
-
PdfBoolean
public PdfBoolean(boolean value) Constructs aPdfBoolean
-object.- Parameters:
value
- the value of the newPdfObject
-
PdfBoolean
Constructs aPdfBoolean
-object.- Parameters:
value
- the value of the newPdfObject
, represented as aString
- Throws:
BadPdfFormatException
- thrown if the value isn't 'true
' or 'false
'
-
-
Method Details
-
booleanValue
public boolean booleanValue()Returns the primitive value of thePdfBoolean
-object.- Returns:
- the actual value of the object.
-