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

This sample shows how to add free text annotations to your PDF document.

Use PDFFreeTextAnnotation class to add text annotation.

Free text annoataion

PDFDocument pdf = new PDFDocument();
pdf.Pages.Add(new PDFPage(PDFPaperFormat.A4));
PDFFreeTextAnnotation annot = new PDFFreeTextAnnotation(100, 100, 150, 100);
annot.Contents = "Free text annotation";

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