How To Add Rubber Stamp Annotation To PDF Documents Using PDF Mosaic .NET

This sample shows how to add rubber stamp annotations to your PDF document.

Use PDFRubberStampAnnotation class to add rubber stamp annotation.

PDF Rubber Stamp Annotation



using PDFMosaic;
using System;

namespace PDFRubberStampAnnotationSample
    class PDFRubberStamptAnnotationSample
        static void Main()
            PDFDocument pdf = new PDFDocument();
            pdf.Pages.Add(new PDFPage(PDFPaperFormat.A4));
            PDFRubberStampAnnotation annot = new PDFRubberStampAnnotation(100, 50, 75, 50);
            annot.Contents = "PDF rubber stamp annotation";
            annot.Color = new PDFColorRGB(80, 0, 150);

            pdf.Save("TestRubberStamp.pdf", true);