PageNumberStamp

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

public final class PageNumberStamp extends TextStamp

Represents page number stamp and used to number pages.

Constructors

ConstructorDescription
PageNumberStampInitializes a new instance of the {@code PageNumberStamp} class. Format is set to “#”.
PageNumberStampInitializes a new instance of the {@code PageNumberStamp} class. Format is set to “#”.
PageNumberStampInitializes a new instance of the {@code PageNumberStamp} class. Format is set to “#”.

Methods

MethodDescription
getFormatGets String value for stamping page numbers. Value must include char ‘#’ which is replaced with the page number in the process of stamping.
getNumberingStyleNumbering style which used by this stamp.
getStartingNumberGets value of the number of starting page. Other pages will be numbered starting from this value.
putAdds page number.
setFormatSets String value for stamping page numbers. Value must include char ‘#’ which is replaced with the page number in the process of stamping.
setNumberingStyleNumbering style which used by this stamp.
setStartingNumberSets value of the number of starting page. Other pages will be numbered starting from this value.

PageNumberStamp

public PageNumberStamp()

Initializes a new instance of the {@code PageNumberStamp} class. Format is set to “#”.

PageNumberStamp

Initializes a new instance of the {@code PageNumberStamp} class. Format is set to “#”.

PageNumberStamp

Initializes a new instance of the {@code PageNumberStamp} class. Format is set to “#”.

getFormat

public String getFormat()

Gets String value for stamping page numbers. Value must include char ‘#’ which is replaced with the page number in the process of stamping.

Returns: String value

getNumberingStyle

public NumberingStyle getNumberingStyle()

Numbering style which used by this stamp.

Returns: NumberingStyle value @see NumberingStyle

getStartingNumber

public int getStartingNumber()

Gets value of the number of starting page. Other pages will be numbered starting from this value.

Returns: int value

put

Adds page number.

setFormat

Sets String value for stamping page numbers. Value must include char ‘#’ which is replaced with the page number in the process of stamping.

setNumberingStyle

Numbering style which used by this stamp.

setStartingNumber

public void setStartingNumber(int value)

Sets value of the number of starting page. Other pages will be numbered starting from this value.

Parameters:

ParameterTypeDescription
valueint value