com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class PdfPageStamp



  • public final class PdfPageStamp
    extends Stamp

    Class represents stamp which uses PDF page as stamp.

    • Constructor Detail

      • PdfPageStamp

        public PdfPageStamp(Page pdfPage)

        Constructor of PdfPageStamp.

        Parameters:
        pdfPage - Page which is used for stamping.
      • PdfPageStamp

        public PdfPageStamp(String fileName,
                            int pageIndex)

        Creates Pdf page stamp from specifed page of the document in specified file.

        Parameters:
        fileName - Name and page of PDF file.
        pageIndex - Index of the page.
      • PdfPageStamp

        public PdfPageStamp(InputStream stream,
                            int pageIndex)

        Creates Pdf page stamp from specifed page in the document from the stream.

        Parameters:
        stream - Stream which contains PDF
        pageIndex - Index of the page.
    • Method Detail

      • getPdfPage

        public Page getPdfPage()

        Gets page which will be used as stamp.

        Returns:
        Page value
      • setPdfPage

        public void setPdfPage(Page value)

        Sets page which will be used as stamp.

        Parameters:
        value - Page object
      • put

        public void put(Page page)

        Put stamp on the specified page.

        Specified by:
        put in class Stamp
        Parameters:
        page - Page where stamp will be placed.
      • close

        public void close()
        Close the instance