Tagging existing text, images etc

Hi,
we are trying to tag an untagged PDF programmatically (Java), but we have discovered that is not possible to create structure tags referring to existing text fragments and images.
For example, if we call .createParagraphElement().setText(“Hello World”) the ‘Hello World’ will be doubled in the out PDF as it’s already existing from the source PDF. It would be great to have a method .setText(List<>), in order to refer the tag to the existing texts. The same should apply also for IllustrationElement.setImage, in order to accept an existing XImage from the source PDF.
Would this extension be possible?
Thanks.

@gianfranco.dancelli

This needs to be investigated. Can you please share your sample share your sample PDF document along with the sample code snippet that you have been trying to use? We will log an investigation ticket as share the ID with you.

Hello, and thanks for your answer.
Here below you can find a very simple project to explain what we are trying to achieve (Java code + sample).

testPDFtagging.zip (36.0 KB)

@gianfranco.dancelli

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): PDFJAVA-43997

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.