private static void CreateLineAnnotations(PdfFixedDocument document, PdfFont font) { PdfBrush blackBrush = new PdfBrush(); PdfPage page = document.Pages.Add(); page.Graphics.DrawString("Line annotations", font, blackBrush, 50, 50); PdfLineEndSymbol[] les = new PdfLineEndSymbol[] { PdfLineEndSymbol.Circle, PdfLineEndSymbol.ClosedArrow, PdfLineEndSymbol.None, PdfLineEndSymbol.OpenArrow }; for (int i = 0; i < les.Length; i++) { PdfLineAnnotation la = new PdfLineAnnotation(); page.Annotations.Add(la); la.Author = "Xfinium.Pdf"; la.Contents = "I am a line annotation with " + les[i].ToString() + " ending."; la.StartPoint = new PdfPoint(50, 100 + 40 * i); la.EndPoint = new PdfPoint(250, 100 + 40 * i); la.EndLineSymbol = les[i]; page.Graphics.DrawString("Line end symbol: " + les[i].ToString(), font, blackBrush, 270, 100 + 40 * i); } }