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

Free Support Forum - aspose.com

Get Page Number and position of text in pdf using Aspose.Pdf .Net

I have the below similar requirement.

I want to add a signature field based on the position of the text and page number. How can I achieve that? Please help.


You can get position and page number of text with this code.

// Open document
Document pdfDocument = new Document(dataDir + "ExtractTextPage.pdf");

TextFragmentAbsorber tfa = new TextFragmentAbsorber();
TextFragmentCollection tfc = tfa.TextFragments;
foreach (TextFragment tf in tfc)

Then I suggest you to visit this article: Securing and signing PDF documents for adding signature.

Thanks @mudassir.fayyaz. It works now.