Package com.ribs.pdf

Class PDFForm


  • public class PDFForm
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PDFForm​(PDFStream s)
      Main Constructor - initialize a form from the given pdf stream object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.geom.Rectangle2D getBBox()
      The Form bounding box (in form space)
      byte[] getBytes()
      Returns the stream data.
      java.util.Map getResources​(PDFFile srcfile)
      The form's resources dictionary
      java.util.List getTokens​(PDFPageParser parser)
      Returns the list of tokens that defines this form.
      java.awt.geom.AffineTransform getTransform()
      The form space->user space transform, from the Form's Matrix entry.
      boolean isTransparencyGroup()
      Are graphics in form treated as a single group for transparency purposes?
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PDFForm

        public PDFForm​(PDFStream s)
        Main Constructor - initialize a form from the given pdf stream object
    • Method Detail

      • getTokens

        public java.util.List getTokens​(PDFPageParser parser)
        Returns the list of tokens that defines this form. The PDFPageParser is used to parse the stream the first time around.
      • getBytes

        public byte[] getBytes()
        Returns the stream data. The tokens maintain pointers into this byte array for all string storage.
      • getTransform

        public java.awt.geom.AffineTransform getTransform()
        The form space->user space transform, from the Form's Matrix entry.
      • getBBox

        public java.awt.geom.Rectangle2D getBBox()
        The Form bounding box (in form space)
      • getResources

        public java.util.Map getResources​(PDFFile srcfile)
        The form's resources dictionary
      • isTransparencyGroup

        public boolean isTransparencyGroup()
        Are graphics in form treated as a single group for transparency purposes?