Class PdfImportedPage


public class PdfImportedPage extends PdfTemplate
Represents an imported page.
  • Field Details

  • Constructor Details

  • Method Details

    • getFromReader

      public PdfImportedPage getFromReader()
      Reads the content from this PdfImportedPage-object from a reader.
      Returns:
      self
    • getPageNumber

      public int getPageNumber()
    • addTemplate

      public void addTemplate(PdfTemplate template, float a, float b, float c, float d, float e, float f)
      Always throws an error. This operation is not allowed.
      Overrides:
      addTemplate in class PdfContentByte
      Parameters:
      template - dummy
      a - dummy
      b - dummy
      c - dummy
      d - dummy
      e - dummy
      f - dummy
    • getDuplicate

      public PdfContentByte getDuplicate()
      Always throws an error. This operation is not allowed.
      Overrides:
      getDuplicate in class PdfTemplate
      Returns:
      dummy
    • getFormXObject

      PdfStream getFormXObject() throws IOException
      Description copied from class: PdfTemplate
      Gets the stream representing this template.
      Overrides:
      getFormXObject in class PdfTemplate
      Returns:
      the stream representing this template
      Throws:
      IOException
    • setColorFill

      public void setColorFill(PdfSpotColor sp, float tint)
      Description copied from class: PdfContentByte
      Sets the fill color to a spot color.
      Overrides:
      setColorFill in class PdfContentByte
      Parameters:
      sp - the spot color
      tint - the tint for the spot color. 0 is no color and 1 is 100% color
    • setColorStroke

      public void setColorStroke(PdfSpotColor sp, float tint)
      Description copied from class: PdfContentByte
      Sets the stroke color to a spot color.
      Overrides:
      setColorStroke in class PdfContentByte
      Parameters:
      sp - the spot color
      tint - the tint for the spot color. 0 is no color and 1 is 100% color
    • getResources

      PdfObject getResources()
      Description copied from class: PdfTemplate
      Constructs the resources used by this template.
      Overrides:
      getResources in class PdfTemplate
      Returns:
      the resources used by this template
    • setFontAndSize

      public void setFontAndSize(BaseFont bf, float size)
      Always throws an error. This operation is not allowed.
      Overrides:
      setFontAndSize in class PdfContentByte
      Parameters:
      bf - dummy
      size - dummy
    • throwError

      void throwError()
    • getPdfReaderInstance

      PdfReaderInstance getPdfReaderInstance()