Skip to main content
All docs
V26.1
  • RubberStampAnnotation Class

    A rubber stump annotation.

    Namespace: DevExpress.Docs.Pdf

    Assembly: DevExpress.Docs.Pdf.v26.1.dll

    Declaration

    public class RubberStampAnnotation :
        MarkupAnnotation

    Example

    How to: Create a Rubber Stamp Annotation

    The following code snippet creates a Top Secret rubber stamp:

    DevExpress PDF Document API - Create Rubber Stamp Annotations

    FileStream fs = File.OpenRead("Demo.pdf");
    var options = new LoadOptions();
    PdfDocument document = new PdfDocument(fs, options);
    
    RubberStampAnnotation rubberStampAnnotation = new RubberStampAnnotation(new RectangleF(10, 550, 240, 50), RubberStampAnnotationIconName.TopSecret) {
        Title = "Jesse Faden",
        CreationDate = DateTime.Now,
        Subject = "Approval",
        Content = "This document has been approved."
    };
    document.Pages[0].Annotations.Add(rubberStampAnnotation);
    
    document.Save(new FileStream("Demo2.pdf", FileMode.Create, FileAccess.Write));
    

    Implements

    Inheritance

    See Also