Class PdfTemplate

java.lang.Object
org.openpdf.text.pdf.PdfContentByte
org.openpdf.text.pdf.PdfTemplate

public class PdfTemplate extends PdfContentByte
Implements the form XObject.
  • Field Details

    • TYPE_TEMPLATE

      public static final int TYPE_TEMPLATE
      See Also:
    • TYPE_PATTERN

      public static final int TYPE_PATTERN
      See Also:
    • type

      protected int type
    • thisReference

      protected PdfIndirectReference thisReference
      The indirect reference to this template
    • pageResources

      protected org.openpdf.text.pdf.PageResources pageResources
      The resources used by this template
    • bBox

      protected Rectangle bBox
      The bounding box of this template
    • matrix

      protected PdfArray matrix
  • Method Details

    • getWidth

      public float getWidth()
      Gets the bounding width of this template.
      Returns:
      width the bounding width
    • setWidth

      public void setWidth(float width)
      Sets the bounding width of this template.
      Parameters:
      width - the bounding width
    • getHeight

      public float getHeight()
      Gets the bounding height of this template.
      Returns:
      height the bounding height
    • setHeight

      public void setHeight(float height)
      Sets the bounding height of this template.
      Parameters:
      height - the bounding height
    • getBoundingBox

      public Rectangle getBoundingBox()
    • setBoundingBox

      public void setBoundingBox(Rectangle bBox)
    • getIndirectReference

      public PdfIndirectReference getIndirectReference()
      Gets the indirect reference to this template.
      Returns:
      the indirect reference to this template
    • getType

      public int getType()
      Gets a duplicate of this PdfTemplate. All the members are copied by reference but the buffer stays different.
      Returns:
      a copy of this PdfTemplate