Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PdfRubberStampAnnotationIconName Class

Contains names of built-in rubber stamp annotation icons.

Namespace: DevExpress.Pdf

Assembly: DevExpress.Pdf.v24.2.Core.dll

NuGet Package: DevExpress.Pdf.Core

#Declaration

public static class PdfRubberStampAnnotationIconName

#Remarks

Pass one of the PdfRubberStampAnnotationIconName class fields as the PdfPageFacade.AddRubberStampAnnotation() method parameter to create a rubber stamp.

The code sample below creates a Top Secret rubber stamp:

rubber stamp

using (PdfDocumentProcessor processor = new PdfDocumentProcessor())
{
    //Load a document.
    processor.LoadDocument("..\\..\\Document.pdf");

    // Access page properties.
    PdfDocumentFacade facade = processor.DocumentFacade;
    PdfPageFacade page = facade.Pages[0];

    // Define a rectangle to place a rubber stamp.
    PdfRectangle rubberStampRectangle = new PdfRectangle(663, 526, 763, 576);

    // Create a "Top Secret" rubber stamp annotation.
    PdfRubberStampAnnotationFacade rubberStamp =
       page.AddRubberStampAnnotation(rubberStampRectangle, PdfRubberStampAnnotationIconName.TopSecret);
    rubberStamp.Author = "Jesse Faden";
}

#Inheritance

Object
PdfRubberStampAnnotationIconName
See Also