public final class PageNumberStamp extends TextStamp
Represents page number stamp and used to number pages.
DefaultFontSize
Constructor and Description |
---|
PageNumberStamp()
Initializes a new instance of the
PageNumberStamp class. |
PageNumberStamp(FormattedText formattedText)
Creates PageNumberStamp by formatted text.
|
PageNumberStamp(String format)
Initializes a new instance of the
PageNumberStamp class. |
Modifier and Type | Method and Description |
---|---|
String |
getFormat()
String value for stamping page numbers.
|
int |
getStartingNumber()
Gets value of the number of starting page.
|
void |
put(Page page)
Adds page number.
|
void |
setFormat(String value) |
void |
setStartingNumber(int value)
Sets value of the number of starting page.
|
getDefaultFont, getTextAlignment, getTextState, getValue, setTextAlignment, setValue
getBackground, getBottomMargin, getHeight, getHorizontalAlignment, getLeftMargin, getOpacity, getRightMargin, getRotate, getRotateAngle, getStampId, getTopMargin, getVerticalAlignment, getWidth, getXIndent, getYIndent, getZoom, getZoomX, getZoomY, setBackground, setBottomMargin, setHeight, setHorizontalAlignment, setLeftMargin, setOpacity, setRightMargin, setRotate, setRotateAngle, setStampId, setTopMargin, setVerticalAlignment, setWidth, setXIndent, setYIndent, setZoom, setZoomX, setZoomY
public PageNumberStamp(String format)
Initializes a new instance of the PageNumberStamp
class.
format
- String value used for stamping. See Format
property for details.public PageNumberStamp()
Initializes a new instance of the PageNumberStamp
class. Format is set to "#".
public PageNumberStamp(FormattedText formattedText)
Creates PageNumberStamp by formatted text.
formattedText
- Formatted text which used to create Page Number Stamp.public String getFormat()
String value for stamping page numbers. Value must include char '#' which is replaced with the page number in the process of stamping.
public void setFormat(String value)
public int getStartingNumber()
Gets value of the number of starting page. Other pages will be numbered starting from this value.
public void setStartingNumber(int value)
Sets value of the number of starting page. Other pages will be numbered starting from this value.
Copyright © 2017 Aspose. All Rights Reserved.