PdfPageStamp
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.pdf.Stamp
public final class PdfPageStamp extends Stamp
Class represents stamp which uses PDF page as stamp.
Constructors
Constructor | Description |
---|---|
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
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
pdfPage | Page | Page 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:
Parameter | Type | Description |
---|---|---|
fileName | java.lang.String | Name and page of PDF file. |
pageIndex | int | Index 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:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream | Stream which contains PDF |
pageIndex | int | Index 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:
Parameter | Type | Description |
---|---|---|
value | Page | Page object |
put(Page page)
public void put(Page page)
Put stamp on the specified page.
Parameters:
Parameter | Type | Description |
---|---|---|
page | Page | Page where stamp will be placed. |
close()
public void close()
Close the instance