保存pdf的修改内容
我下载了一份表格,我想在表格上预先填写一些内容(使用 cfpdfform 很容易)。
棘手的地方是我想允许用户修改该表单的内容,然后以某种方式让我可以访问这些修改后的内容。我没有构建源 PDF,所以我不知道如何允许用户“保存”新内容以便可以阅读。
关于我可以从哪里开始做这件事有什么想法吗?
I've got a form that I downloaded, I'd like to prefill some content on the form (this is easy using cfpdfform).
Where it gets tricky is I would like to allow the user to modify the contents of that form, and then somehow have those modified contents accessible to me. I didnt build the source PDF so I dont know how to allow the user to "save" the new contents so they can be read.
Any ideas on where I might start on this one?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您还可以使用 cfpdfform 标签将数据读取/写入到具有表单的 PDF 文件。重要的是 PDF 文档已经具有可用的表单字段,或者您添加了它们。
我最近刚刚完成了一项任务,我必须让用户填写一个普通的 Web 表单,然后创建现有 PDF 文档的填充版本。它工作起来轻而易举!
我认为,根据您想要完成的任务,让用户在 Web 表单中填写数据比提供 PDF 并期望他们将其保存以更新远程服务器上的文件更容易混淆。不过,这只是我的意见。
http://www.cfquickdocs.com/cf8/?getDoc=cfpdfform#cfpdfform< /a>
You can also use the cfpdfform tag to read/write data to a PDF file which has a form. The important thing is that the PDF document already have the form fields available, or that you add them.
I just recently completed a task where I had to have a user fill out a normal web form, and then create a filled version of an existing PDF document. It worked like a breeze!
I think that depending on what you are trying to accomplish, having the user fill out the data in a web form is less confusing than serving up a PDF and expecting them to save that to update a file on a remote server. Just my opinion, though.
http://www.cfquickdocs.com/cf8/?getDoc=cfpdfform#cfpdfform
用户可以在 Adobe Reader 中完成大多数 PDF 表单,但当用户尝试保存更改时,他们会收到一个弹出窗口,提示他们 PDF 无法保存,需要升级到 Adobe Acrobat 才能拥有此功能。
从 Acrobat 7(或可能)8 开始,可以创建一个表单,以便可以在阅读器中完成并保存它。在 Acrobat 中打开 PDF,然后选择“高级”->“高级”。从菜单中直接在阅读器中启用使用。这将提示您保存表单,然后任何使用 Adobe reader 的人都可以填写它。
完成后,您可以在 ColdFusion 中打开表单,填充一些字段并将其提供给用户。一旦他们填写完毕,保存并将其返回到 ColdFusion 中,您就可以使用 PDF 相关标签阅读内容。
请注意:目前无法从 ColdFusion 设置“在阅读器中启用使用权限”标志,您需要 Adobe Acrobat 的副本或访问 Adobe LifeCycle 服务器才能执行此操作。
It's possible for users to complete most PDF forms in Adobe Reader, but when user's try to save the changes they get a popup prompting them that the PDF cannot be saved and would need to upgrade to Adobe Acrobat to have this functionality.
Since Acrobat 7 (or possibly) 8 it's possible to create a form so that it can be completed and saved in reader. In Acrobat open your PDF, and select Advanced -> Enable usage right in reader from the menu. This will prompt you to save the form and then anyone using Adobe reader can complete it.
Once that's done you can open the form in ColdFusion, populate some of the fields and serve it up to the user. Once they fill it in, save it and get it back in ColdFusion you can read the contents using the PDF related tags.
Please note: It's currently not possible to set the "enable usage rights in reader" flag from ColdFusion, you need a copy of Adobe Acrobat or access to Adobe LifeCycle server to do this.
本文档可以帮助您:
http://www.adobe.com/education/instruction/教学/coldfusion/CF8-2_advanced_cf8_development_unit8.pdf
This document may help you:
http://www.adobe.com/education/instruction/teach/coldfusion/CF8-2_advanced_cf8_development_unit8.pdf