Can I get some clarity in the documentation and usage for the StampAnnotation. In the documentation (https://reference.aspose.com/net/pdf/aspose.pdf.annotations/stampannotation) the constructors are either a Document or a Page+Rectangle:
Constructors:
Public method StampAnnotation(Document)
Public method StampAnnotation(Page, Rectangle)
Creates new Stamp annotation on the specified page.
But in the examples there are demonstrations of passing in a StampIcon or an Image as constructors:
Document document = new Document(inFile);
StampAnnotation stamp1 = new StampAnnotation(StampIcon.NotForPublicRelease);
stamp1.Rect = new Rectangle(100, 100, 120, 120)
document.Pages[1].Annotations.Add(stamp1);
StampAnnotation stamp2 = new StampAnnotation(new FileStream(“rubber.jpg”, FileMode.Open));
stamp2.Rect = new Rectangle(200, 200, 220, 220)
document.Pages[1].Annotations.Add(stamp2);
document.Save(outFile);
What is the correct usage of this? Thanks.