PDF Mosaic: How to add squiggly annotation to PDF documents


Home       Features       Download       Tutorial       Version History       License       Source Code

 

This sample shows how to add squiggly annotations to your PDF document.

Use PDFSquigglyAnnotation class to add squiggly annotation.


 

using PDFMosaic;
using System;
 
namespace PDFSquigglyAnnotationSample
{
    class PDFSquigglyAnnotationSample
    {
        static void Main()
        {
            PDFDocument pdf = new PDFDocument();
            pdf.Pages.Add(new PDFPage(PDFPaperFormat.A4));
            PDFSquigglyAnnotation annot = new PDFSquigglyAnnotation(100, 50, 75, 50);
            annot.Contents = "PDF squiggly annotation";
            annot.Color = new PDFColorRGB(80, 50, 150);
 
            pdf.Pages[0].Annotations.Add(annot);
            pdf.Save("TestSquigglyAnnotation.pdf", true);
        }
    }
}

 


Home       Features       Download       Tutorial       Version History       License       Source Code