public class PDFNumber extends PDFObject
Modifier and Type | Method and Description |
---|---|
static String |
doubleOut(double doubleDown)
Output a double value to a string suitable for PDF (6 decimal digits).
|
static String |
doubleOut(Double doubleDown)
Output a Double value to a string suitable for PDF.
|
static String |
doubleOut(double doubleDown,
int dec)
Output a double value to a string suitable for PDF.
|
static StringBuffer |
doubleOut(double doubleDown,
int dec,
StringBuffer buf)
Append a double value to a string buffer suitable for PDF.
|
Number |
getNumber()
Returns the number.
|
void |
setNumber(Number number)
Sets the number.
|
boolean |
supportsObjectStream() |
protected String |
toPDFString()
This method returns a String representation of the PDF object.
|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getChildren, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF
public PDFNumber()
public PDFNumber(Number number)
public Number getNumber()
public void setNumber(Number number)
number
- the numberpublic static String doubleOut(Double doubleDown)
doubleDown
- the Double valuepublic static String doubleOut(double doubleDown)
doubleDown
- the double valuepublic static String doubleOut(double doubleDown, int dec)
doubleDown
- the Double valuedec
- the number of decimal places to outputpublic static StringBuffer doubleOut(double doubleDown, int dec, StringBuffer buf)
doubleDown
- the Double valuedec
- the number of decimal places to outputbuf
- the string buffer to which double is formatted (appended)protected String toPDFString()
toPDFString
in class PDFObject
public boolean supportsObjectStream()
supportsObjectStream
in class PDFObject
Copyright © 2025 Apache Software Foundation. All rights reserved.