Class XObject

java.lang.Object
org.jpedal.constants.XObject

public final class XObject extends Object
Represents a basic Form XObject
  • Constructor Summary

    Constructors
    Constructor
    Description
    XObject(float[] boundingBox)
    Create a new Form XObject.
    XObject(float[] boundingBox, float[] matrix)
    Create a new Form XObject.
  • Method Summary

    Modifier and Type
    Method
    Description
    draw(String commands)
    Write stream drawing commands to this XObject

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XObject

      public XObject(float[] boundingBox)
      Create a new Form XObject.
      Parameters:
      boundingBox - An array of four numbers in the form coordinate system giving the coordinates of the left, bottom, right, and top edges, respectively, of the form XObject’s bounding box.
    • XObject

      public XObject(float[] boundingBox, float[] matrix)
      Create a new Form XObject.
      Parameters:
      boundingBox - An array of four numbers in the form coordinate system giving the coordinates of the left, bottom, right, and top edges, respectively, of the form XObject’s bounding box.
      matrix - An array of six numbers specifying the form matrix, which maps form space into user space.
  • Method Details

    • draw

      public XObject draw(String commands)
      Write stream drawing commands to this XObject
      Parameters:
      commands - the commands to write
      Returns:
      a reference to this XObject