1

I have a PDF document storted as binary in the SQL Server database. I have rendered the binary document as PDF inside an iFrame using HTTP Handler.

Now, I want to allow the users to edit the data in the PDF file shown inside the iFrame and also populate some of the fields in the PDF automatically on clicking a button.

After all the fields are populated, the filled PDF document in the iFrame should be saved back as binary in the database.

How can this be implemented using ASP.NET 4.0?

4

3 回答 3

0

我通过在 Adob​​e Acrobat(交互式)表单中添加 HTTP 提交按钮来实现这一点。单击提交按钮时,PDF 文档将发布到服务器(一个 ASPX 页面)。ASPX 页面将读取作为流发布的 PDF 文档,将其转换为字节并存储在数据库中。

于 2011-11-16T17:57:39.207 回答
0

我想你正在寻找http://www.radpdf.com/

于 2011-11-14T23:52:27.510 回答
0

这是您问题的困难部分:

现在,我想允许用户编辑 iFrame 内显示的 PDF 文件中的数据,并在单击按钮时自动填充 PDF 中的一些字段。

您将需要一个第三方工具来提供用于在 PDF 中填写表单字段的 API。有一些便宜的和一些昂贵的。我唯一成功使用过的是

但也有一些开源项目:

这些工具可用于填写 PDF 的字段,以及对 PDF 的其他基本编辑,但在表单字段之外编辑文本等操作非常困难。围绕 PDF 创作构建了完整的软件套件(想想 Adob​​e Acrobat)。它们都应该提供为您提供新 PDF 的方法(作为文件、字节数组、流),以便您可以将其保留回数据库。

允许用户下载和编辑 Word 文档(或您选择的任何等效文档)并将最终结果转换为 PDF 可能会更好。Aspose 再次可以帮助填写文档中的表单字段以及从 Doc 到 PDF 的转换。

我与 Aspose 没有任何关系——它似乎只是完成这类任务的交易工具。

于 2011-11-14T23:38:46.270 回答