PDF Mosaic: How to add rubber stamp annotation to PDF documents


Home       Features       Download       Tutorial       Version History       License       Source Code

 

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

Use PDFRubberStampAnnotation class to add 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.Pages[0].Annotations.Add(annot);
            pdf.Save("TestRubberStamp.pdf", true);
        }
    }
}

 


Home       Features       Download       Tutorial       Version History       License       Source Code