com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class PageNumberStamp



  • public final class PageNumberStamp
    extends TextStamp

    Represents page number stamp and used to number pages.

    • Constructor Detail

      • PageNumberStamp

        public PageNumberStamp(String format)

        Initializes a new instance of the PageNumberStamp class.

        Parameters:
        format - String value used for stamping. See Format property for details.
      • PageNumberStamp

        public PageNumberStamp()

        Initializes a new instance of the PageNumberStamp class. Format is set to "#".

      • PageNumberStamp

        public PageNumberStamp(FormattedText formattedText)

        Creates PageNumberStamp by formatted text.

        Parameters:
        formattedText - Formatted text which used to create Page Number Stamp.
    • Method Detail

      • 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
      • setFormat

        public void setFormat(String value)

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

        Parameters:
        value - String value
      • getStartingNumber

        public int getStartingNumber()

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

        Returns:
        int value
      • setStartingNumber

        public void setStartingNumber(int value)

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

        Parameters:
        value - int value
      • put

        public void put(Page page)

        Adds page number.

        Overrides:
        put in class TextStamp
        Parameters:
        page - Page for stamping.
      • getNumberingStyle

        public int getNumberingStyle()

        Numbering style which used by this stamp.

        Returns:
        NumberingStyle value
        See Also:
        NumberingStyle
      • setNumberingStyle

        public void setNumberingStyle(int value)

        Numbering style which used by this stamp.

        Parameters:
        value - NumberingStyle value
        See Also:
        NumberingStyle