Package com.aowagie.text.pdf
Class PdfBoolean
java.lang.Object
com.aowagie.text.pdf.PdfObject
com.aowagie.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.7' section 3.2.1 (page 52).
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
A possible value ofPdfBoolean
(package private) static final PdfBoolean
static final PdfBoolean
private static final String
A possible value ofPdfBoolean
private boolean
the boolean value of this objectFields inherited from class com.aowagie.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
-
Constructor Summary
ConstructorsConstructorDescriptionPdfBoolean
(boolean value) Constructs aPdfBoolean
-object.PdfBoolean
(String value) Constructs aPdfBoolean
-object. -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
Returns the primitive value of thePdfBoolean
-object.toString()
Returns theString
-representation of thisPdfObject
.Methods inherited from class com.aowagie.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, setContent, setIndRef, toPdf, 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
PdfBoolean(String value) throws BadPdfFormatException 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