Duplicate redaction replacement text in RTF document

When I redact rtf file attached I am getting the replacement text 3 times though there is only one word is in the document. Please remove .pdf extension from file names as it can’t be uploaded with .rtf extension.

Redaction test details:
Original file: One Two Three Four Pattern_Feb14th_001.rtf.pdf (23.5 KB)
Redacted file: redacted-file.rtf.pdf (943.9 KB)

Groupdocs redaction version: 21.12

    @Test
void redactRtfDuplicates() throws Exception {
    try (InputStream indoc = getClass().getResourceAsStream("/One Two Three Four Pattern_Feb14th_001.rtf");
                    OutputStream outDoc = Files.newOutputStream(new File("redacted-file.rtf").toPath());
                    Redactor redactor = new Redactor(indoc)) {
        redactor.apply(new RegexRedaction("ALWPG5809L", new ReplacementOptions("[Secret]")));
        RasterizationOptions ro = new RasterizationOptions();
        ro.setEnabled(false);
        redactor.save(outDoc, ro);
    }
}
1 Like

@shiva.k
This issue is reproduced at our end. Therefore, 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): REDACTIONJAVA-167

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.

Hi,
Is this issue resolved in any version?

@shiva.k

This issue is resolved in API version 23.3.