Reading order messed up after flattening the pdf form

Hi Team,

I’m filling a form in the existing accessibility compliant PDF and flattening the form to make it not editable afterwards.

After the flattening, the reading order of the fields are in wrong order.
But if I’m not flattening it, just make those fields as readonly, it reads in proper order.

Any idea why it is behaving like this?
Aspose.pdf (407.6 KB)
PDF_From_Template.pdf (59.8 KB)


Can you please share sample code snippet for our reference that you are using? We will test the scenario in our environment and address it accordingly.

Hello Asad,

Please find the source code snippet for your reference. This zip file has code and pdf template to fill. (34.1 KB)

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): PDFNET-53615

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.