Class PDFDictUtils
- java.lang.Object
-
- com.inductiveautomation.rm.pdf.reader.PDFDictUtils
-
public class PDFDictUtils extends java.lang.Object
A collection of routines for pulling various objects out of PDF dictionaries
-
-
Constructor Summary
Constructors Constructor Description PDFDictUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean[]
getBoolArray(java.util.Map dictionary, PDFFile srcFile, java.lang.String key)
An array of bools : << /Vals [true false] >>static float
getFloat(java.util.Map dictionary, PDFFile srcFile, java.lang.String key)
static float[]
getFloatArray(java.util.Map dictionary, PDFFile srcFile, java.lang.String key)
An array of floats: << /Nums [1.414 2.717 3.1415 ] >>static int
getInt(java.util.Map dictionary, PDFFile srcFile, java.lang.String key)
static int[]
getIntArray(java.util.Map dictionary, PDFFile srcFile, java.lang.String key)
An array of ints : << /Ints [1 3 5 7] >>static java.awt.geom.Rectangle2D
getRectangle(java.util.Map dictionary, PDFFile srcFile, java.lang.String key)
A rectangle : << /BBox [0 0 612 792] >>static java.awt.geom.AffineTransform
getTransform(java.util.Map dictionary, PDFFile srcFile, java.lang.String key)
A transformation matrix: << /Matrix [1 0 0 1 0 0] >>
-
-
-
Method Detail
-
getFloatArray
public static float[] getFloatArray(java.util.Map dictionary, PDFFile srcFile, java.lang.String key)
An array of floats: << /Nums [1.414 2.717 3.1415 ] >>
-
getIntArray
public static int[] getIntArray(java.util.Map dictionary, PDFFile srcFile, java.lang.String key)
An array of ints : << /Ints [1 3 5 7] >>
-
getBoolArray
public static boolean[] getBoolArray(java.util.Map dictionary, PDFFile srcFile, java.lang.String key)
An array of bools : << /Vals [true false] >>
-
getTransform
public static java.awt.geom.AffineTransform getTransform(java.util.Map dictionary, PDFFile srcFile, java.lang.String key)
A transformation matrix: << /Matrix [1 0 0 1 0 0] >>
-
getRectangle
public static java.awt.geom.Rectangle2D getRectangle(java.util.Map dictionary, PDFFile srcFile, java.lang.String key)
A rectangle : << /BBox [0 0 612 792] >>
-
getInt
public static int getInt(java.util.Map dictionary, PDFFile srcFile, java.lang.String key)
-
getFloat
public static float getFloat(java.util.Map dictionary, PDFFile srcFile, java.lang.String key)
-
-