Preserving Accessibility Tags when Merging PDFs using PyPDF2

Hello Python Community,

I am currently working on a project where I need to merge two PDF files while preserving accessibility tags in the final document. I have successfully merged the PDFs using PyPDF2, but unfortunately, I’ve noticed that the accessibility tags are being lost in the process.

Is there anyone in the community who has experience with this issue and could guide me on how to maintain accessibility tags during the merging process? I would greatly appreciate any insights, suggestions, or alternative approaches to achieve this.

Thank you in advance for your time and assistance.

Best regards,

Francesco