Creating PDF AnnotationsThe 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(); |
PDF .NET Library for .NET Software Developers - PDF Component Library for C#, VB.NET and ASP.NET developers Copyright © PDF Technologies Inc., 2010. |