- java.lang.Object
-
- com.itextpdf.text.pdf.PdfObject
-
- com.itextpdf.text.pdf.PdfBoolean
-
public class PdfBoolean extends PdfObject
PdfBooleanis 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:
PdfObject,BadPdfFormatException
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFALSEA possible value ofPdfBooleanstatic PdfBooleanPDFFALSEstatic PdfBooleanPDFTRUEstatic java.lang.StringTRUEA possible value ofPdfBoolean
-
Constructor Summary
Constructors Constructor Description PdfBoolean(boolean value)Constructs aPdfBoolean-object.PdfBoolean(java.lang.String value)Constructs aPdfBoolean-object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbooleanValue()Returns the primitive value of thePdfBoolean-object.java.lang.StringtoString()Returns theString-representation of thisPdfObject.-
Methods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, toPdf, type
-
-
-
-
Field Detail
-
PDFTRUE
public static final PdfBoolean PDFTRUE
-
PDFFALSE
public static final PdfBoolean PDFFALSE
-
TRUE
public static final java.lang.String TRUE
A possible value ofPdfBoolean- See Also:
- Constant Field Values
-
FALSE
public static final java.lang.String FALSE
A possible value ofPdfBoolean- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PdfBoolean
public PdfBoolean(boolean value)
Constructs aPdfBoolean-object.- Parameters:
value- the value of the newPdfObject
-
PdfBoolean
public PdfBoolean(java.lang.String value) throws BadPdfFormatExceptionConstructs aPdfBoolean-object.- Parameters:
value- the value of the newPdfObject, represented as aString- Throws:
BadPdfFormatException- thrown if the value isn't 'true' or 'false'
-
-