How to Print Page Numbers to pdf using Aspose.pdf?

How to Print Page Numbers to pdf using Aspose.pdf?

In pdf i have to get page 1 0f 5 in tht Page 1 ...?

Hi Deepi,

Please see the following documentation link with details and sample code regarding how to add page number in your PDF file using Aspose.PDF for .NET suggested here. You can also add page number stamp in existing PDF document. Please check following documentation links for the purpose.

Moreover, I’m afraid you are using quite old versions of Aspose.PDF API. If your issue persist then you have to upgrade to latest version of Aspose.PDF for .NET. As we maintain a single code base and all fixes and new features are always added into new versions of our products. Its difficult to suggest any solution in old versions So, we strongly recommend you please use the latest official release of Aspose.PDF for .NET to get a fix of reported issue.

After adding the page numbers, you can print the document using PdfViewer class. Please see the following documentation link for details and sample code.

In case you need any further assistance, please do let us know.

Thank You & Best Regards,