IPdfFileStamp

public interface IPdfFileStamp

interface for adding stamps (watermark or background) to PDF files.

Fields

FieldDescription
POS_BOTTOM_LEFTBottom left position.
POS_BOTTOM_MIDDLEBottom middle position.
POS_BOTTOM_RIGHTBottom right position.
POS_SIDES_LEFTLeft position.
POS_SIDES_RIGHTRight position.
POS_UPPER_LEFTUpper let position.
POS_UPPER_MIDDLEUpper middle position.
POS_UPPER_RIGHTRight upper position.

Methods

MethodDescription
addFooterAdds footer to the pages of the document.
addFooterAdds footer to the pages of the document.
addFooterAdds image as footer of the page.
addFooterAdds image as footer of the page.
addFooterAdds image as footer to the pages of the document.
addFooterAdds image as footer of the pages.
addHeaderAdds header to the page.
addHeaderAdds header to the pages of file.
addHeaderAdds image as header on the pages.
addHeaderAdds image at the top of the page.
addHeaderAdds image as header to the pages of the file.
addHeaderAdds image as header on the pages.
addPageNumberAdds page number to the page.
addPageNumberAdds page number at the specified position on the page.
addPageNumberAdds page number to the pages.
addPageNumberAdds page number to the pages of document.
addPageNumberAdd page number to file.
addPageNumberAdds page number at the specified position on the page.
addPageNumberAdds page number to the pages.
addPageNumberAdds page number to the pages of document.
addStampAdds stamp to the file.
closeCloses opened files and saves changes.
disposeDeprecated.
getAttachmentNameGets name of attachment when result of operation is stored into HttpResponse objects as attachment.
getContentDispositionGets how content will be stored when result of operation is stored into HttpResponse object.
getDocumentGets the document PdfFileStamp is working on.
getInputFileGets name and path of input file.
getInputStreamGets input stream.
getKeepSecurityKeeps security if true.
getOutputFileGets name and path of output file.
getOutputStreamGets output stream.
getPageHeightGets height of first page in souorce file.
getPageNumberRotationGets rotation of page number.
getPageWidthGets width of first page in input file.
getSaveOptionsGets save options when result is stored as HttpResponse.
getStartingNumberGets or sets starting number for first page in input file.
setAttachmentNameSets name of attachment when result of operation is stored into HttpResponse objects as attachment.
setContentDispositionSets how content will be stored when result of operation is stored into HttpResponse object.
setConvertToSets PDF file format.
setInputFileSets name and path of input file.
setInputStreamSets input stream.
setKeepSecuritySet Keep Security
setOutputFileSets name and path of output file.
setOutputStreamSets or sets output stream.
setPageNumberRotationSets rotation of page number.
setSaveOptionsSets save options when result is stored as HttpResponse.
setStartingNumberSets 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:

ParameterTypeDescription
valueboolean 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:

ParameterTypeDescription
valuefloat 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:

ParameterTypeDescription
valueint value