Hi
In this PDF image_redaction_test.pdf (50.3 KB) we have a vector and raster image. If we use the Redaction feature we can redact both as shown in this PDF redacted.pdf (64.9 KB)
The issue is that if the user opens the redacted pdf in a PDF editor they can select the vector (but not the raster) image underneath the redaction and drag it out to see what it was, this defeats the purpose of the redaction.
Is there any way to handle this, maybe baking the vector image onto the page into a raster format?
Thanks
Si
PS: The code for doing the redaction is:
Rectangle redactionArea = new Rectangle(llx, lly, urx, ury);
var redaction = new Aspose.Pdf.Annotations.RedactionAnnotation(pageDoc.Pages[1], redactionArea);
if (!x.IsNegative) // redact in White rather than default black
{
redaction.FillColor = Color.White;
redaction.BorderColor = Color.White;
redaction.Color = Color.White;
}
pageDoc.Pages[1].Annotations.Add(redaction);
redaction.Redact();