pdftron.PDF.Annots.RubberStamp stamp = pdftron.PDF.Annots.RubberStamp.create(doc, new Rect(30, 30, 300, 200));stamp.setIcon("Draft");first_page.annotPushBack(stamp);stamp.setIcon(RubberStamp.e_Draft); // this is an int, not a string.
stamp.RefreshAppearance(); // before saving.