Hi,
I want to see all stamps on a document and which StampID they have, but the GetStamps() method does always return an empty list.
[TestMethod]
public void LogAllStampIDsTest()
{
StringBuilder sb = new StringBuilder();
var pdfContentEditor = new PdfContentEditor();
pdfContentEditor.BindPdf(@"C:\StampedDocument.pdf");
sb.AppendLine($"Page\tStampText\tStampID");
for (int i = 1; i <= pdfContentEditor.Document.Pages.Count; i++)
{
foreach (var stamp in pdfContentEditor.GetStamps(i))
{
sb.AppendLine($"{i}\t{stamp.Text}\t{stamp.StampId}");
}
}
File.WriteAllText(@"C:\Stamps.txt", sb.ToString());
}
We use Apose.PDF (for .NET) version 22.1.0.
Am I doing something wrong here?StampedDocument.pdf (54.6 KB)