Using PDFBox how can i extract a pdf's tab order from each field?

Viewed 23

I am trying to convert a pdf to html. The PDF i have has tab order configured on several fields. Using Pdfbox how can i extract the tab order value set on each field so that i can then set the tab index within the html?

I've tried iterating over each field (PDField) by doing PDAcroForm.getFields() but that gives me the fields in random order. Then i thought that maybe i can extract tab order information from the field itself but PDField does not hold any tab order information.

Any other ideas??

0 Answers
Related