officefileapi-devexpress-dot-pdf-0862caf0.md
Contains names of built-in rubber stamp annotation icons.
Namespace : DevExpress.Pdf
Assembly : DevExpress.Pdf.v25.2.Core.dll
NuGet Package : DevExpress.Pdf.Core
public static class PdfRubberStampAnnotationIconName
Public Module PdfRubberStampAnnotationIconName
Pass one of the PdfRubberStampAnnotationIconName class fields as the PdfPageFacade.AddRubberStampAnnotation() method parameter to create a rubber stamp.
The following code snippet creates a Top Secret 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";
}
Using processor As New PdfDocumentProcessor()
'Load a document.
processor.LoadDocument("..\..\Document.pdf")
' Access page properties.
Dim facade As PdfDocumentFacade = processor.DocumentFacade
Dim page As PdfPageFacade = facade.Pages(0)
' Define a rectangle to place a rubber stamp.
Dim rubberStampRectangle As New PdfRectangle(663, 526, 763, 576)
' Create a "Top Secret" rubber stamp annotation.
Dim rubberStamp As PdfRubberStampAnnotationFacade =
page.AddRubberStampAnnotation(rubberStampRectangle, PdfRubberStampAnnotationIconName.TopSecret)
rubberStamp.Author = "Jesse Faden"
End Using
Object PdfRubberStampAnnotationIconName
See Also