填写PDF表单并保存在ASP.NET页面中 [英] Fill PDF Form and Save in a ASP.NET page

查看:90
本文介绍了填写PDF表单并保存在ASP.NET页面中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个使用ASP.NET开发的Web应用程序。我需要一个功能来显示嵌入在表单中的pdf文件。 pdf文件实际上是一个带有一些可编辑控件的表单,如文本框,复选框等。我希望用户填写此pdf表单并单击提交按钮以保存此文件。单击提交按钮时,应将用户填写的数据的pdf文件保存在服务器上。我需要帮助完成如何将文件上传到服务器的最后一步。



我知道我可以允许用户下载文件,编辑它然后上传它。但我需要显示嵌入在网页上的文件,它应该通过点击同一页面上的按钮来保存,而不是先下载然后再上传。



我在谷歌搜索并发现它可以使用Reader Extensions Server或一些第三方工具完成,但这些帖子不是很清楚。



可以有人指导我完成这些步骤或指向一篇有用的文章?

I am working on a web application, developed using ASP.NET. I need a functionality to show a pdf file embedded in the form. The pdf file is actually a form with some editable controls like textbox, checkbox etc. I want the users to fill this pdf form and click on submit button to save this file. When submit button is clicked, the pdf file with the data filled by the user should be saved on the server. I need help with the last step that how to upload the file to the server.

I know that I can allow users to download the files, edit it and then upload it. But I need to show the file embedded on the web page and it should be saved by clicking a button on that same page, instead of first downloading it and then uploading it back.

I searched on google and found that it can be done using Reader Extensions Server or some third party tools, but those posts are not very clear.

Can someone guide me through the steps or point to a helpful article?

推荐答案

我认为保存个人数据比保存PDF更好。因为您可以根据需要更改或自定义数据,只需要进行最少的更改,但另一方面,如果您要保存pdf,那么即使存在少量更改,也需要替换整个pdf。



同时单独保存数据字段,您可以更好地控制数据。

然后您可以使用数据按需生成PDF文件。



有2个第三方工具

1.iTextSharp( http://stackoverflow.com/questions/18378458/export-html-to-pdf-using-itextsharp [ ^ ])

2.EO.PDF( http://www.essentialobjects.com/Products/Pdf/UrlToPdf.aspx [ ^ ])



两者都是很好的工具,可以用来按需生成PDF文件。



假设您有相同数据的多个模板(要显示的格式/设计样式)。

然后您可以为用户提供自定义数据以供查看和填充的选项。

保存数据将为您提供更多选择以多种方式表示。



您也不需要上传PDF。
I think saving individual data is better than saving the PDF. As you can change or customize the data with minimal changes as and when required, but in the other hand if you are saving the pdf then you need to replace the whole pdf even if there is a small change.

Also saving the data fields individually , you can have a better control over data.
you can then generate the PDF file on demand using the data.

There are 2 third party tools
1.iTextSharp(http://stackoverflow.com/questions/18378458/export-html-to-pdf-using-itextsharp[^])
2.EO.PDF(http://www.essentialobjects.com/Products/Pdf/UrlToPdf.aspx[^])

Both are good tool they can be used to generate PDF files on demand.

Say you have several templates (Format/Design style to be shown) for the same data.
Then you can give the user an option to customize the data for look and fill.
Saving the data will give you more option to represent in various ways.

Also you dont need to upload the PDF.


这篇关于填写PDF表单并保存在ASP.NET页面中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆