public final class PdfPageStamp extends Stamp
Class represents stamp which uses PDF page as stamp.
Constructor and Description |
---|
PdfPageStamp(InputStream stream,
int pageIndex)
Creates Pdf page stamp from specifed page in the document from the stream.
|
PdfPageStamp(Page pdfPage)
Constructor of PdfPageStamp.
|
PdfPageStamp(String fileName,
int pageIndex)
Creates Pdf page stamp from specifed page of the document in specified file.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the instance
|
Page |
getPdfPage()
Gets page which will be used as stamp.
|
void |
put(Page page)
Put stamp on the specified page.
|
void |
setPdfPage(Page value)
Sets page which will be used as stamp.
|
getBackground, getBottomMargin, getHeight, getHorizontalAlignment, getLeftMargin, getOpacity, getOutlineOpacity, getOutlineWidth, getRightMargin, getRotate, getRotateAngle, getStampId, getTopMargin, getVerticalAlignment, getWidth, getXIndent, getYIndent, getZoom, getZoomX, getZoomY, setBackground, setBottomMargin, setHeight, setHorizontalAlignment, setLeftMargin, setOpacity, setOutlineOpacity, setOutlineWidth, setRightMargin, setRotate, setRotateAngle, setStampId, setTopMargin, setVerticalAlignment, setWidth, setXIndent, setYIndent, setZoom, setZoomX, setZoomY
public PdfPageStamp(Page pdfPage)
Constructor of PdfPageStamp.
pdfPage
- Page which is used for stamping.public PdfPageStamp(String fileName, int pageIndex)
Creates Pdf page stamp from specifed page of the document in specified file.
fileName
- Name and page of PDF file.pageIndex
- Index of the page.public PdfPageStamp(InputStream stream, int pageIndex)
Creates Pdf page stamp from specifed page in the document from the stream.
stream
- Stream which contains PDFpageIndex
- Index of the page.public Page getPdfPage()
Gets page which will be used as stamp.
public void setPdfPage(Page value)
Sets page which will be used as stamp.
value
- Page objectpublic void put(Page page)
Put stamp on the specified page.
public void close()