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

Free Support Forum - aspose.com

Get PageStamp Numbering

I am trying to get the page numbers I insert as stamps. Here is how they are inserted:


int n = (int)numBatesBegin.Value;
PageNumberStamp s = new PageNumberStamp();
s.StartingNumber = n;
s.HorizontalAlignment = Aspose.Pdf.HorizontalAlignment.Right;
s.VerticalAlignment = Aspose.Pdf.VerticalAlignment.Bottom;
s.RightMargin = 10;
s.BottomMargin = 10;
s.Format = “0000#”;

foreach (Page p in d.Pages)
{
p.AddStamp(s);

Now, at a later time, I want to go back and find all the stamps. Particularly, I want to find any stamp by number (e.g., something like getStamp(“000099”)).

Thanks in advance for your help.

Hi Jeff,


Thanks for contacting support.

In order to search string inside PDF file, you may consider using instructions specified over Search and get Text from all pages using Regular Expression. In case you are face any issue, please share the resource file, so that we can test the scenario in our environment.