问题描述
我正在使用pdftk用XFDF文件填写PDF表单.但是,对于该项目,我事先并不知道将出现哪些字段,因此我需要分析PDF本身以查看需要填写哪些字段,并相应地向用户提供一个界面,然后从中生成XFDF文件.填写PDF表格.
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 to see what fields need to be filled in, present an interface to the user accordingly, and then generate an XFDF file from that to fill in the PDF form.
如何获取字段名称?最好是命令行,.NET或PHP解决方案.
How do I get the field names? Preferably command-line, .NET or PHP solutions.
推荐答案
我可以让我的客户端使用Acrobat与PDF一起导出XFDF文件(其中包含字段名称),从而完全避免了此问题.
I can get my client to export the XFDF file (which contains field names) using Acrobat along with the PDF, which avoids this problem completely.
这篇关于从PDF表单中提取PDF表单字段名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!