We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Setting page numbers in the footer

Hi,

How to set page number style like “Page # of #” on the right most side of the footer.

Please suggest us how to done this.



Thanks,
Veeru1

Hello Veeru,

Thanks for using our products.

Please visit the following link for required information. Image & Page Number in Header/Footer section

One more thing, in order to display the text in right most side, simply add the following line before saving the PDF document.

// set the horizontal alignment of text as right
txt.TextInfo.Alignment = Aspose.Pdf.AlignmentType.Right;

In case of any further query, please feel free to contact.