Created
October 13, 2020 08:45
-
-
Save andruhovski/63142b59d6c287d72b5f0b438cbbcec9 to your computer and use it in GitHub Desktop.
Removing annotations from PDF page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static void RemoveAnnotations(Page page, Aspose.Pdf.Annotations.AnnotationType annotationType) | |
{ | |
var annotations = page.Annotations.Where(a => a.AnnotationType == annotationType).ToArray(); | |
foreach (var annotation in annotations) | |
{ | |
page.Annotations.Delete(annotation); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment