IPdfFileStamp
public interface IPdfFileStamp
interface for adding stamps (watermark or background) to PDF files.
Fields
| Field | Description |
|---|---|
| POS_BOTTOM_LEFT | Bottom left position. |
| POS_BOTTOM_MIDDLE | Bottom middle position. |
| POS_BOTTOM_RIGHT | Bottom right position. |
| POS_SIDES_LEFT | Left position. |
| POS_SIDES_RIGHT | Right position. |
| POS_UPPER_LEFT | Upper let position. |
| POS_UPPER_MIDDLE | Upper middle position. |
| POS_UPPER_RIGHT | Right upper position. |
Methods
| Method | Description |
|---|---|
| addFooter | Adds footer to the pages of the document. |
| addFooter | Adds footer to the pages of the document. |
| addFooter | Adds image as footer of the page. |
| addFooter | Adds image as footer of the page. |
| addFooter | Adds image as footer to the pages of the document. |
| addFooter | Adds image as footer of the pages. |
| addHeader | Adds header to the page. |
| addHeader | Adds header to the pages of file. |
| addHeader | Adds image as header on the pages. |
| addHeader | Adds image at the top of the page. |
| addHeader | Adds image as header to the pages of the file. |
| addHeader | Adds image as header on the pages. |
| addPageNumber | Adds page number to the page. |
| addPageNumber | Adds page number at the specified position on the page. |
| addPageNumber | Adds page number to the pages. |
| addPageNumber | Adds page number to the pages of document. |
| addPageNumber | Add page number to file. |
| addPageNumber | Adds page number at the specified position on the page. |
| addPageNumber | Adds page number to the pages. |
| addPageNumber | Adds page number to the pages of document. |
| addStamp | Adds stamp to the file. |
| close | Closes opened files and saves changes. |
| dispose | Deprecated. |
| getAttachmentName | Gets name of attachment when result of operation is stored into HttpResponse objects as attachment. |
| getContentDisposition | Gets how content will be stored when result of operation is stored into HttpResponse object. |
| getDocument | Gets the document PdfFileStamp is working on. |
| getInputFile | Gets name and path of input file. |
| getInputStream | Gets input stream. |
| getKeepSecurity | Keeps security if true. |
| getOutputFile | Gets name and path of output file. |
| getOutputStream | Gets output stream. |
| getPageHeight | Gets height of first page in souorce file. |
| getPageNumberRotation | Gets rotation of page number. |
| getPageWidth | Gets width of first page in input file. |
| getSaveOptions | Gets save options when result is stored as HttpResponse. |
| getStartingNumber | Gets or sets starting number for first page in input file. |
| setAttachmentName | Sets name of attachment when result of operation is stored into HttpResponse objects as attachment. |
| setContentDisposition | Sets how content will be stored when result of operation is stored into HttpResponse object. |
| setConvertTo | Sets PDF file format. |
| setInputFile | Sets name and path of input file. |
| setInputStream | Sets input stream. |
| setKeepSecurity | Set Keep Security |
| setOutputFile | Sets name and path of output file. |
| setOutputStream | Sets or sets output stream. |
| setPageNumberRotation | Sets rotation of page number. |
| setSaveOptions | Sets save options when result is stored as HttpResponse. |
| setStartingNumber | Sets starting number for first page in input file. |
POS_BOTTOM_LEFT
static final int POS_BOTTOM_LEFT
Bottom left position.
POS_BOTTOM_MIDDLE
static final int POS_BOTTOM_MIDDLE
Bottom middle position.
POS_BOTTOM_RIGHT
static final int POS_BOTTOM_RIGHT
Bottom right position.
POS_SIDES_LEFT
static final int POS_SIDES_LEFT
Left position.
POS_SIDES_RIGHT
static final int POS_SIDES_RIGHT
Right position.
POS_UPPER_LEFT
static final int POS_UPPER_LEFT
Upper let position.
POS_UPPER_MIDDLE
static final int POS_UPPER_MIDDLE
Upper middle position.
POS_UPPER_RIGHT
static final int POS_UPPER_RIGHT
Right upper position.
addFooter
Adds footer to the pages of the document.
addFooter
Adds footer to the pages of the document.
addFooter
Adds image as footer of the page.
addFooter
Adds image as footer of the page.
addFooter
Adds image as footer to the pages of the document.
addFooter
Adds image as footer of the pages.
addHeader
Adds header to the page.
addHeader
Adds header to the pages of file.
addHeader
Adds image as header on the pages.
addHeader
Adds image at the top of the page.
addHeader
Adds image as header to the pages of the file.
addHeader
Adds image as header on the pages.
addPageNumber
Adds page number to the page.
addPageNumber
Adds page number at the specified position on the page.
addPageNumber
Adds page number to the pages.
addPageNumber
Adds page number to the pages of document.
addPageNumber
Add page number to file.
addPageNumber
Adds page number at the specified position on the page.
addPageNumber
Adds page number to the pages.
addPageNumber
Adds page number to the pages of document.
addStamp
Adds stamp to the file.
close
void close()
Closes opened files and saves changes.
dispose
@Deprecated void dispose()
Deprecated.
getAttachmentName
String getAttachmentName()
Gets name of attachment when result of operation is stored into HttpResponse objects as attachment.
Returns: String value
getContentDisposition
ContentDisposition getContentDisposition()
Gets how content will be stored when result of operation is stored into HttpResponse object.
Returns: ContentDisposition element
getDocument
IDocument getDocument()
Gets the document PdfFileStamp is working on.
Returns: IDocument object
getInputFile
String getInputFile()
Gets name and path of input file.
Returns: String object
getInputStream
InputStream getInputStream()
Gets input stream.
Returns: InputStream object
getKeepSecurity
boolean getKeepSecurity()
Keeps security if true.
Returns: boolean value
getOutputFile
String getOutputFile()
Gets name and path of output file.
Returns: String object
getOutputStream
OutputStream getOutputStream()
Gets output stream.
Returns: OutputStream object
getPageHeight
float getPageHeight()
Gets height of first page in souorce file.
Returns: float value
getPageNumberRotation
float getPageNumberRotation()
Gets rotation of page number.
Returns: float value
getPageWidth
float getPageWidth()
Gets width of first page in input file.
Returns: float value
getSaveOptions
SaveOptions getSaveOptions()
Gets save options when result is stored as HttpResponse.
Returns: SaveOptions object
getStartingNumber
int getStartingNumber()
Gets or sets starting number for first page in input file.
Returns: int value
setAttachmentName
Sets name of attachment when result of operation is stored into HttpResponse objects as attachment.
setContentDisposition
Sets how content will be stored when result of operation is stored into HttpResponse object.
setConvertTo
Sets PDF file format.
setInputFile
Sets name and path of input file.
setInputStream
Sets input stream.
setKeepSecurity
void setKeepSecurity(boolean value)
Set Keep Security
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |
setOutputFile
Sets name and path of output file.
setOutputStream
Sets or sets output stream.
setPageNumberRotation
void setPageNumberRotation(float value)
Sets rotation of page number.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float value |
setSaveOptions
Sets save options when result is stored as HttpResponse.
setStartingNumber
void setStartingNumber(int value)
Sets starting number for first page in input file.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int value |