How To Add Squiggly Annotation To PDF Documents Using PDF Mosaic .NET

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

Use PDFSquigglyAnnotation class to add squiggly annotation.

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.Save("TestSquigglyAnnotation.pdf", true);