Aspose::Pdf::Facades::PdfFileStamp::AddPageNumber method

PdfFileStamp::AddPageNumber(System::SharedPtr<FormattedText>) method

Adds page number to the page. Page number may contain # sign which will be replaced with page number. Page number is placed in the bottom of the page centered horizontally.

void Aspose::Pdf::Facades::PdfFileStamp::AddPageNumber(System::SharedPtr<FormattedText> formattedText)
ParameterTypeDescription
formattedTextSystem::SharedPtr<FormattedText>Format string for page number representes as FormattedText.

See Also

PdfFileStamp::AddPageNumber(System::SharedPtr<FormattedText>, float, float) method

Adds page number at the specified position on the page.

void Aspose::Pdf::Facades::PdfFileStamp::AddPageNumber(System::SharedPtr<FormattedText> formattedText, float x, float y)
ParameterTypeDescription
formattedTextSystem::SharedPtr<FormattedText>Formatted text which represents page number format and properties of the text. Format string can contain # sign which will be replaced with page number.
xfloatX coordinate of page number.
yfloatY coordinate of page number.

See Also

PdfFileStamp::AddPageNumber(System::SharedPtr<FormattedText>, int32_t) method

Adds page number to the pages.

void Aspose::Pdf::Facades::PdfFileStamp::AddPageNumber(System::SharedPtr<FormattedText> formattedText, int32_t position)
ParameterTypeDescription
formattedTextSystem::SharedPtr<FormattedText>FormattedText object which contains format of the page number and text properties. This text may contain # which will be replaced with page number.
positionint32_tPosition where page number will be placed on the page. 0-bottom middle, 1-bottom right, 2-upper right, 3 - sides right, 4 - upper middle,5 - bottom left,6 - sides left,7 - upper left. You can use the following constants: PosBottomMiddle = 0, PosBottomRight = 1, PosUpperRight = 2, PosSidesRight = 3, PosUpperMiddle, PosBottomLeft = 5, PosSidesLeft, PosUpperLeft

See Also

PdfFileStamp::AddPageNumber(System::SharedPtr<FormattedText>, int32_t, float, float, float, float) method

Adds page number to the pages of document.

void Aspose::Pdf::Facades::PdfFileStamp::AddPageNumber(System::SharedPtr<FormattedText> formattedText, int32_t position, float leftMargin, float rightMargin, float topMargin, float bottomMargin)
ParameterTypeDescription
formattedTextSystem::SharedPtr<FormattedText>FormattedText object which represents page number format and properties iof the text.
positionint32_tPosition where page number will be placed on the page. 0-bottom middle, 1-bottom right, 2-upper right, 3 - sides right, 4 - upper middle,5 - bottom left,6 - sides left,7 - upper left. You can use the following constants: PosBottomMiddle = 0, PosBottomRight = 1, PosUpperRight = 2, PosSidesRight = 3, PosUpperMiddle, PosBottomLeft = 5, PosSidesLeft, PosUpperLeft
leftMarginfloatMargin on the left edge of the page.
rightMarginfloatMargin on the right edge of the page.
topMarginfloatMargin on the top edge of the page.
bottomMarginfloatMargin on the bottom edge of the page.

See Also

PdfFileStamp::AddPageNumber(System::String) method

Add page number to file. Page number text may contain # sign which will be replaced with number of the page. Page number is placed in the bottom of the page centered horizontally.

void Aspose::Pdf::Facades::PdfFileStamp::AddPageNumber(System::String formatString)
ParameterTypeDescription
formatStringSystem::StringText of page number

See Also

PdfFileStamp::AddPageNumber(System::String, float, float) method

Adds page number at the specified position on the page.

void Aspose::Pdf::Facades::PdfFileStamp::AddPageNumber(System::String formatString, float x, float y)
ParameterTypeDescription
formatStringSystem::StringFormat string. Format string can contain # sign which will be replaced with page number.
xfloatX coordinate of page number.
yfloatY coordinate of page number.

See Also

PdfFileStamp::AddPageNumber(System::String, int32_t) method

Adds page number to the pages.

void Aspose::Pdf::Facades::PdfFileStamp::AddPageNumber(System::String formatString, int32_t position)
ParameterTypeDescription
formatStringSystem::StringFormat of the page number. This text may contain # which will be replaced with page number.
positionint32_tPosition where page number will be placed on the page. 0-bottom middle, 1-bottom right, 2-upper right, 3 - sides right, 4 - upper middle,5 - bottom left,6 - sides left,7 - upper left. You can use the following constants: PosBottomMiddle = 0, PosBottomRight = 1, PosUpperRight = 2, PosSidesRight = 3, PosUpperMiddle, PosBottomLeft = 5, PosSidesLeft, PosUpperLeft

See Also

PdfFileStamp::AddPageNumber(System::String, int32_t, float, float, float, float) method

Adds page number to the pages of document.

void Aspose::Pdf::Facades::PdfFileStamp::AddPageNumber(System::String formatString, int32_t position, float leftMargin, float rightMargin, float topMargin, float bottomMargin)
ParameterTypeDescription
formatStringSystem::StringFormat string for page number.
positionint32_tPosition where page number will be placed on the page. 0-bottom middle, 1-bottom right, 2-upper right, 3 - sides right, 4 - upper middle,5 - bottom left,6 - sides left,7 - upper left. You can use the following constants: PosBottomMiddle = 0, PosBottomRight = 1, PosUpperRight = 2, PosSidesRight = 3, PosUpperMiddle, PosBottomLeft = 5, PosSidesLeft, PosUpperLeft
leftMarginfloatMargin on the left edge of the page.
rightMarginfloatMargin on the right edge of the page.
topMarginfloatMargin on the top edge of the page.
bottomMarginfloatMargin on the bottom edge of the page.

See Also