PDF文件在ASP.NET C#中 [英] PDF file In ASP.NET C#

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

问题描述

假设我有一个asp.net表单,其中包含有关某人的不同信息。当我点击asp.net网络表单中的提交按钮时,我想将所有信息写在pdf文件中,如简历。我怎么能在PDF文件中这样做? asp.net C#中是否有默认的PDF内容?

Suppose I have an asp.net form where different information about a person. When I click on submit button in a asp.net web form, I want to write all the information in a pdf file like a resume. How can i make this in PDF file? Is there any default PDF content in asp.net C#?

推荐答案



在像你这样的情况下生成PDF的好方法是从HTML创建PDF。创建一个写有所有HTML代码的文本文件。然后用您想要的或输入的表单文本替换该文本文件的特定部分。然后,您可以将该HTML转换为PDF文件。现在有很多方法可以将HTML转换为PDF文件。检查以下链接..



Codeproject的类似问题:

如何从HTML页面创建PDF文件asp.net C# [ ^ ]



其他链接:

http://www.devtoolshed.com/content/c-free-component-generate-pdf-convert-html-pdf [ ^ ]

http://www.duodimension.com/html_pdf_asp.net/Articles /pdfduo23_090815.html [ ^ ]

http://www.dotnetobject.com/Thread-Html-to-Pdf-conversion-in-asp-net-c [ ^ ]



我希望这会有所帮助。

谢谢:)
Hi,
A good way to generate PDF in a situation like yours is to create PDF from HTML. Create a text file written all your HTML code. Then replace specific section of that text file with your desired or input text of the form. Then you can convert that HTML into PDF file. Now there are many way to convert HTML to PDF file. Check below links..

Similar Question at Codeproject:
How to create PDF file from a HTML page asp.net C#[^]

Other Links:
http://www.devtoolshed.com/content/c-free-component-generate-pdf-convert-html-pdf[^]
http://www.duodimension.com/html_pdf_asp.net/Articles/pdfduo23_090815.html[^]
http://www.dotnetobject.com/Thread-Html-to-Pdf-conversion-in-asp-net-c[^]

I hope this will help.
Thanks :)


这篇关于PDF文件在ASP.NET C#中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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