The fields are returned in the order in which they were created. Is there a way to retrieve them in the tab order if the tab order has been set manually in the pdf?
Can you please share some sample PDF files where the tab order for form fields is different from order in which they are added inside document, so that we can further look into this matter.
Please find attached 3 sample files created with Acrobat Pro that have a tab order that does not match the order returned from the Document.Form object. The fields are returned from the Form object in the order they were created. Text1, Text2, Text3. The tab order is correctly Text3, Text2, Text1 in acrobat for all three files.
Thanks for sharing additional information and sample PDF documents. I have noticed that Aspose.Pdf returns form fields in tab order but created. So I have logged an investigation ticket PDFNEWNET-39522 in our issue tracking system for further investigation and resolution. We will keep you updated about the issue resolution progress.