public class PDFUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
toBytes(java.lang.String s)
A utility method to convert a string to US-ASCII byte format.
|
static java.lang.String |
toDateFormat(java.util.Date date)
Returns a string in standard PDF date format representing the specified
date (in the default timezone).
|
static java.lang.String |
toPDFArray(boolean[] b)
A utility method to convert a boolean[] to a PDF array string.
|
static java.lang.String |
toPDFArray(double[] d)
A utility method to convert a double[] to a PDF array string.
|
static java.lang.String |
toPDFArray(float[] f)
A utility method to convert a float[] to a PDF array string.
|
static java.lang.String |
toPDFDateFormat(java.util.Calendar calendar)
Returns a string in standard PDF date format representing the date
contained by the specified calendar.
|
static java.lang.String |
transformToPDF(java.awt.geom.AffineTransform t)
Returns a Java2D AffineTransform in PDF matrix format.
|
public static java.lang.String toPDFArray(boolean[] b)
b
- the array (null
not permitted).public static java.lang.String toPDFArray(float[] f)
f
- the array (null
not permitted).public static java.lang.String toPDFArray(double[] d)
d
- the array (null
not permitted).public static java.lang.String transformToPDF(java.awt.geom.AffineTransform t)
t
- the transform (null
not permitted).public static java.lang.String toDateFormat(java.util.Date date)
date
- the date (null
not permitted).public static java.lang.String toPDFDateFormat(java.util.Calendar calendar)
calendar
- the date and timezone (null
not permitted).public static byte[] toBytes(java.lang.String s)
s
- the string.