Package org.openpdf.text.pdf
Class PdfNumber
java.lang.Object
org.openpdf.text.pdf.PdfObject
org.openpdf.text.pdf.PdfNumber
- All Implemented Interfaces:
Comparable<PdfNumber>
PdfNumber provides two types of numbers, integer and real.
Integers may be specified by signed or unsigned constants. Reals may only be in decimal format.
This object is
described in the 'Portable Document Format Reference Manual version 1.7' section 3.3.2 (page 52-53).
- See Also:
-
Field Summary
Fields inherited from class org.openpdf.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.openpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, isArray, isDictionary, isName, isNull, isNumber, isString, setContent, toPdf, toString, type
-
Constructor Details
-
PdfNumber
public PdfNumber(int value) Constructs a newPdfNumber-object of type integer.- Parameters:
value- value of the newPdfNumber-object
-
PdfNumber
public PdfNumber(double value) Constructs a newPdfNumber-object of type real.- Parameters:
value- value of the newPdfNumber-object
-
PdfNumber
public PdfNumber(float value) Constructs a newPdfNumber-object of type real.- Parameters:
value- value of the newPdfNumber-object
-
-
Method Details