PDF .NET Library  .NET PDF Component Library. PDF creator, PDF maker.
Home Products Code Library Online Demos Support Buy About Us  
Code Library

Creating PDF Annotations

The following code snippet creates a PDF, adds a small text and places a comment annotation in a given location.

c# sample:

PDFDocument MyPDF = new PDFDocument("Annotations.pdf");

MyPDF.CurrentPage.Body.AddText("Sample comment");

MyPDF.CurrentPage.Body.AddTextAnnotation("Comment", "Comment Annotation", TextAnnotationIcon.Comment, new RectangleF(120,0, 100, 100));

MyPDF.Save();

Back to PDF Code Library