Hi,
I need a way to take existing annotations and remove the author names, but leave them otherwise intact. Is there a way to do this in Spire.PDF?
Thanks,
Matt
for (int i = 0; i < doc.Pages.Count; i++)
{
for (int x = 0; x < doc.Pages[i].AnnotationsWidget.Count; x++)
{
if (doc.Pages[i].AnnotationsWidget[x] is PdfTextMarkupAnnotationWidget)
{
PdfTextMarkupAnnotationWidget tma = doc.Pages[i].AnnotationsWidget[x] as PdfTextMarkupAnnotationWidget;
tma.Author = "";
}
}
}
if (doc.Pages[i].AnnotationsWidget[x] is PdfCaretAnnotationWidget)
{
PdfCaretAnnotationWidget ppa = doc.Pages[i].AnnotationsWidget[x] as PdfCaretAnnotationWidget;
ppa.Author = "";
}