We have a requirement where we need to delete an instance of an IMG logo from the PDF page.
The same logo image is present on two locations on the same PDF. When I try to redact using following code the image within the rectangular area is cleared but the same logo on a different location of the same PDF page gets blackened.
Is there any other option available for me to delete images without affecting other instances?
I have also tried ImagePlacementAbsorber but there is no option available to delete an image when I iterate through the ImagePlacement object inside of the Absorber.
//solution one redacts the image in within the rectangle but blackens the other instance of the same
Dim rectangle As New Aspose.Pdf.Rectangle(Specs(0), Specs(1), Specs(2), Specs(3))
Dim annotator As New PdfAnnotationEditor(pdf)
annotator.RedactArea(i, rectangle, System.Drawing.Color.Transparent)