Punctuation marks position are changed after redaction nearby standing tokens. Example:
Redaction area: Redaction area.png (105.9 KB)
Result demo: demo.gif (434.6 KB)
Source file: SAE Narrative.pdf (83.2 KB)
Result file: result.pdf (82.5 KB)
Java version: 11
Aspose PDF version: 21.11
Code snippet
@Test
void testAddRedaction() {
var document = new Document("SAE Narrative.pdf");
var page = document.getPages().get_Item(1);
var redactionRectangle = new Rectangle(248.70000000000013, 589.416, 290.6800000000001, 602.6160000000001);
var annotation = new RedactionAnnotation(page, redactionRectangle);
annotation.setFillColor(Color.getBlueViolet());
annotation.setBorderColor(Color.getBlueViolet());
page.getAnnotations().add(annotation);
annotation.redact();
document.save("result.pdf");
}
If you have any workaround for it, please, let me know.