I have a PDF document, and I want to use RedactionAnnotation screenshot to cover part of the top area, but when I execute the following code, the image outside the top covered area is displayed abnormally.
void Main()
{
var doc = new Aspose.Pdf.Document(@"C:\Users\54390\Desktop\月亮.pdf");
var annotationColor = Aspose.Pdf.Color.Green;
foreach (var page in doc.Pages)
{
var annot = new RedactionAnnotation(page, new Aspose.Pdf.Rectangle(0, page.Rect.Height - 56, page.Rect.Width, page.Rect.Height));
annot.FillColor = annotationColor;
annot.Color = annotationColor;
page.Annotations.Add(annot);
annot.Redact();
}
doc.Save(@"C:\Users\54390\Desktop\output.pdf");
}
Sample file
月亮.pdf (546.9 KB)
Screenshot
20230305205248.png (295.6 KB)
@sullivan
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): PDFNET-53793
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@asad.ali
Hello,Is there any progress on this issue? Thank you!
@sullivan
The ticket was recently logged in our issue tracking system and will be resolved on first come first serve basis. We will surely inform you as soon as we make some progress towards its resolution. Please spare us some time. We are sorry for the inconvenience.
The issues you have found earlier (filed as PDFNET-53793) have been fixed in Aspose.PDF for .NET 24.6.