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()
    • addImage

      public void addImage(Image image, float a, float b, float c, float d, float e, float f) throws DocumentException
      Always throws an error. This operation is not allowed.
      Overrides:
      addImage in class PdfContentByte
      Parameters:
      image - dummy
      a - dummy
      b - dummy
      c - dummy
      d - dummy
      e - dummy
      f - dummy
      Throws:
      DocumentException - dummy
    • 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(int compressionLevel) throws IOException
      Gets the stream representing this page.
      Overrides:
      getFormXObject in class PdfTemplate
      Parameters:
      compressionLevel - the compressionLevel
      Returns:
      the stream representing this page
      Throws:
      IOException
      Since:
      2.1.3 (replacing the method without param compressionLevel)
    • 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
    • setGroup

      public void setGroup(PdfTransparencyGroup group)
      Always throws an error. This operation is not allowed.
      Overrides:
      setGroup in class PdfTemplate
      Parameters:
      group - New value of property group.
      Since:
      2.1.6
    • throwError

      void throwError()
    • getPdfReaderInstance

      PdfReaderInstance getPdfReaderInstance()