PdfPageStamp

Inheritance: java.lang.Object, com.aspose.pdf.Stamp

public final class PdfPageStamp extends Stamp

Class represents stamp which uses PDF page as stamp.

Constructors

ConstructorDescription
PdfPageStamp(Page pdfPage)Constructor of PdfPageStamp.
PdfPageStamp(String fileName, int pageIndex)Creates Pdf page stamp from specifed page of the document in specified file.
PdfPageStamp(InputStream stream, int pageIndex)Creates Pdf page stamp from specifed page in the document from the stream.

Methods

MethodDescription
getPdfPage()Gets page which will be used as stamp.
setPdfPage(Page value)Sets page which will be used as stamp.
put(Page page)Put stamp on the specified page.
close()Close the instance

PdfPageStamp(Page pdfPage)

public PdfPageStamp(Page pdfPage)

Constructor of PdfPageStamp.

Parameters:

ParameterTypeDescription
pdfPagePagePage which is used for stamping.

PdfPageStamp(String fileName, int pageIndex)

public PdfPageStamp(String fileName, int pageIndex)

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

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringName and page of PDF file.
pageIndexintIndex of the page.

PdfPageStamp(InputStream stream, int pageIndex)

public PdfPageStamp(InputStream stream, int pageIndex)

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

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamStream which contains PDF
pageIndexintIndex of the page.

getPdfPage()

public Page getPdfPage()

Gets page which will be used as stamp.

Returns: Page - Page value

setPdfPage(Page value)

public void setPdfPage(Page value)

Sets page which will be used as stamp.

Parameters:

ParameterTypeDescription
valuePagePage object

put(Page page)

public void put(Page page)

Put stamp on the specified page.

Parameters:

ParameterTypeDescription
pagePagePage where stamp will be placed.

close()

public void close()

Close the instance