Extract PDF form field names from a PDF form

前端 未结 6 1076
旧巷少年郎
旧巷少年郎 2020-12-29 05:24

I\'m using pdftk to fill in a PDF form with an XFDF file. However, for this project I do not know in advance what fields will be present, so I need to analyse the PDF itself

6条回答
  •  自闭症患者
    2020-12-29 06:04

    Easy! You are using pdftk already

    # pdftk input.pdf dump_data_fields
    

    It will output Field name, field type, some of it's properties (like what are the options for dropdown list or text alignment) and even a Tooltip text (which I found to be extremely useful)

    The only thing I'm missing is field coordinates...

提交回复
热议问题