|
PdfLoadedDocument doc = new PdfLoadedDocument(@"Input.pdf");
RectangleF rect = new RectangleF(0f, 0f, 101f, 100f);
PdfRectangleAnnotation annotate = new PdfRectangleAnnotation(rect, "test");
annotate.Opacity = 1;
annotate.Color = new Syncfusion.Pdf.Graphics.PdfColor(System.Drawing.Color.Black);
doc.Pages[0].Annotations.Add(annotate);
MemoryStream stream = new MemoryStream();
doc.Save(stream);
doc.Close();
doc.Dispose();
PdfView.Load(stream); |