How to extract form field name together with co-ordinates of the rectangle from a PDF Acroform using Python

I would like to extract all the form field names, the corresponding co-ordinates of the input field boxes, and an indicator of which page the particular field is on from an editable PDF (Acroform) document using Python.

Example Output:

Field Name:

     llx: 41.2363    
     lly: 297.303    
     urx: 58.4182    
     ury: 312.848    
     width: 17.1819    
     height: 15.545    
     Page: 1

The following site performs the task described above:

https://www.setasign.com/products/setapdf-core/demos/find-form-field-coordinates/

Source: Python-3x Questions

LEAVE A COMMENT