生成HTML字符串PDF文件用vb asp.net [英] generate pdf file from html string in asp.net with vb
问题描述
我要生成从HTML字符串和PDF文件我使用asp.net邮件附加的PDF文件。
我尝试ghtmldoc.exe,就会产生损坏的PDF文件。
任何一个可以帮助我,它的急吗?
等着你帮
I want to generate pdf file from html string and that pdf file I have to attach in mail using asp.net. I try ghtmldoc.exe, it will generate corrupted pdf file. Can any one help me, its urgent? waiting for you help
我也用iTextSharp的。它没有生成PDF格式的,虽然我不认为在HTML页面中使用CSS。在HTML文件中,只有数据转换为PDF。
I also use iTextsharp. It generate pdf without format though I dont use css in that html page. Only data in html file is converted in pdf.
在此先感谢
推荐答案
我总是发现Winnovative HTML PDF转换非常有用的做这样的事情:
I've always found Winnovative HTML to PDF converter very useful for doing things like this:
http://www.winnovative-software.com/Html-到PDF-Converter.aspx
您可以指定一个URL转换为PDF格式,或指定一个HTML字符串转换为PDF来代替。
You can either specify a URL to convert to PDF, or specify a HTML string to convert to PDF instead.
这是开源的解决方案,将是iTextSharp的:
An open source solution, would be iTextSharp:
http://sourceforge.net/projects/itextsharp/
这篇关于生成HTML字符串PDF文件用vb asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!