Determine PDF Page count while generating PDF in C# using Aspose.PDF for .NET

Hi

Am generating data to add to page dynamically,Content can be fit in one page or more.
I have to Add text after dynamically created text and adding text should be at the end of that ending page.

@psaini_arc

Thanks for contacting support.

Please use Document.ProcessParagraphs() method, after adding text dynamically in the PDF. After calling suggested method, you will get correct count of pages and desired text can be added at the last page. In case you experience any issue, please share your sample code snippet along with sample PDF document. We will test the scenario in our environment and address it accordingly.