Class PdfImportedPage

    • Field Detail

      • pageNumber

        int pageNumber
      • rotation

        int rotation
      • toCopy

        protected boolean toCopy
        True if the imported page has been copied to a writer.
        Since:
        iText 5.0.4
    • Method Detail

      • getFromReader

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

        public int getPageNumber()
      • getRotation

        public int getRotation()
      • 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
      • getFormXObject

        public PdfStream getFormXObject​(int compressionLevel)
                                 throws java.io.IOException
        Gets the stream representing this page.
        Overrides:
        getFormXObject in class PdfTemplate
        Parameters:
        compressionLevel - the compressionLevel
        Returns:
        the stream representing this page
        Throws:
        java.io.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()
      • isToCopy

        public boolean isToCopy()
        Checks if the page has to be copied.
        Returns:
        true if the page has to be copied.
        Since:
        iText 5.0.4
      • setCopied

        public void setCopied()
        Indicate that the resources of the imported page have been copied.
        Since:
        iText 5.0.4