Hello. I have a pdf-documents with redactions, how i can get marked text?
Hi Nick,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Yes, at the moment Aspose.Pdf for .NET does not provide the feature to specifically extract text ‘marked for redaction’. I have created a new feature request in our issue tracking system with issue id: PDFNEWNET-34521 for our development team to further analyze the issue. They will check if this can be supported in future.
Sorry for the inconvenience,
Document pdfDocument = new Document(inputFile);<o:p></o:p>
StringBuilder builder = new StringBuilder();
foreach (Page page in pdfDocument.Pages)
foreach (Aspose.Pdf.InteractiveFeatures.Annotations.Annotation annotation in page.Annotations)
if (annotation is PopupAnnotation)
Aspose.Pdf.Rectangle rect = annotation.Rect;
TextAbsorber absorber = new TextAbsorber();
absorber.TextSearchOptions.Rectangle = rect;
Please feel free to contact us for any further assistance.