We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Punctuation marks position are changed after redaction nearby standing tokens

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.

@dkuksa

We have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as PDFJAVA-41094. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.