Class PDFDictUtils

java.lang.Object
com.inductiveautomation.rm.pdf.reader.PDFDictUtils

public class PDFDictUtils extends Object
A collection of routines for pulling various objects out of PDF dictionaries
  • Constructor Details

    • PDFDictUtils

      public PDFDictUtils()
  • Method Details

    • getFloatArray

      public static float[] getFloatArray(Map dictionary, PDFFile srcFile, String key)
      An array of floats: << /Nums [1.414 2.717 3.1415 ] >>
    • getIntArray

      public static int[] getIntArray(Map dictionary, PDFFile srcFile, String key)
      An array of ints : << /Ints [1 3 5 7] >>
    • getBoolArray

      public static boolean[] getBoolArray(Map dictionary, PDFFile srcFile, String key)
      An array of bools : << /Vals [true false] >>
    • getTransform

      public static AffineTransform getTransform(Map dictionary, PDFFile srcFile, String key)
      A transformation matrix: << /Matrix [1 0 0 1 0 0] >>
    • getRectangle

      public static Rectangle2D getRectangle(Map dictionary, PDFFile srcFile, String key)
      A rectangle : << /BBox [0 0 612 792] >>
    • getInt

      public static int getInt(Map dictionary, PDFFile srcFile, String key)
    • getFloat

      public static float getFloat(Map dictionary, PDFFile srcFile, String key)