Hi,
I’m experiencing a strange issue adding a redaction using 19.11.00
I have a searchable PDF that I’m trying to apply a redaction to, however the redaction is coming out with a slight rotation.
Code
var redactionArea = new Rectangle(100, 100, 400, 400);
var redaction = new RedactionAnnotation(doc.Pages[1], redactionArea);
doc.Pages[1].Annotations.Add(redaction);
redaction.Redact();
Examples
Input file
Output if redaction.Redact()
is excluded
Output when .Redact()
is applied
I can’t simply exclude .Redact()
, or replace with .Flatten()
as I wish to remove the underlying content.
If it helps, the source file has come from an OCR’ing process, which has corrected the angle of the document slightly. The angle the document was corrected by appears to be consistent with the rotation that is being applied by .Redact()
Any help would be greatly appreciated.
Many Thanks,
Tom