简体   繁体   English

使用Java iText PDF API保存可编辑的PDF

[英]Save editable PDFs using Java iText PDF API

I'm experimenting with the iText5 library to generate an editable (ie allow user to enter values in fields like age, name etc) PDF, it looks like the user can't save the filled in PDF on his work station and the only available functionality is to take a printout of the filled in PDF form. 我正在尝试使用iText5库生成可编辑的(例如,允许用户在年龄,姓名等字段中输入值)PDF,看来用户无法将填写的PDF保存在他的工作站上,并且是唯一可用的功能是打印出所填写的PDF表单。

I tried googling this issue and found that with Adobe Reader, users can't save filled in forms and they need to have Acrobat Pro. 我尝试谷歌搜索此问题,发现使用Adobe Reader,用户无法保存填写的表单,因此他们需要Acrobat Pro。

Is there any solution to get this job done (saving the filled in PDF form and emailing it) without needing to get Adobe Pro software? 是否有任何解决方案可以完成此工作(保存已填写的PDF表格并通过电子邮件发送)而无需获取Adobe Pro软件?

Please feel free to ask me questions if the problem description is not clear. 如果问题描述不清楚,请随时问我问题。

Thanks in advance. 提前致谢。

There are other viewers that allow people to save filled out forms locally (Nitro? Foxit?). 还有其他查看器允许人们在本地保存填写的表格(Nitro?Foxit?)。 In the early years, there were also people that used iText to create a mini server on the desktop to which the data filled out in Adobe Reader was sent. 早些年,也有人使用iText在桌面上创建一个微型服务器,并将在Adobe Reader中填写的数据发送到该微型服务器。 This server then returned the filled out form. 然后,该服务器返回填写的表格。 Once Adobe found out about this practice, they changed the EULA of Adobe Reader, saying that you are not allowed to use Adobe Reader for this purpose. 一旦Adobe发现了这种做法,他们便更改了Adobe Reader的EULA,并说您不允许为此目的使用Adobe Reader。

Summarized: 总结:

  • If you want a solution that involves your end users to use Adobe Reader: there is none. 如果要让最终用户使用Adobe Reader的解决方案,那就没有了。 You'd violate the EULA of Adobe Reader. 您违反了Adobe Reader的EULA。
  • If it's OK to use a PDF viewer other than Adobe Reader: pick another viewer that allows saving of filled out forms. 如果可以使用Adobe Reader以外的PDF查看器,请:选择另一个可以保存填写表格的查看器。

Note: this is not an iText question. 注意:这不是iText问题。

It looks like I was having older version of Adobe Reader (Version : X), which doesn't have the capability to save user entered data. 看来我使用的是旧版本的Adobe Reader(版本:X),它无法保存用户输入的数据。 Upgrading Adobe Reader to DC version seems to have fixed my problem where I can now save the filled in form data. 将Adobe Reader升级到DC版本似乎已经解决了我现在可以保存填写的表单数据的问题。 Just trying to document here so that it can be useful for the fellows who may be are running into similar situations. 只是尝试在此处进行记录,以便对可能遇到类似情况的同事有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM