[]
A stamp annotation displays graphics, images, or texts to look as if they were stamped on a page. Upon opening, the stamp annotations display a pop-up window with the text of the associated note. DsPdf provides StampAnnotation class to enable users to apply stamp annotations to the PDF file.

Refer to the following example code to add a stamp annotation to a PDF document:
public void CreateStampAnnotation()
{
GcPdfDocument doc = new GcPdfDocument();
var page = doc.NewPage();
//Create an instance of StampAnnotation class and set its relevant properties
var stamp = new StampAnnotation()
{
Contents = "This is a sample stamp",
UserName = "Jamie Smith",
Color = Color.SkyBlue,
Icon = StampAnnotationIcon.Confidential.ToString(),
CreationDate = DateTime.Today,
PdfRect = new RectangleF(100.5F, 110.5F, 72, 72),
};
page.Annotations.Add(stamp); //Add the stamp annotation
doc.Save("StampAnnotation.pdf");
}