开发者

Generate PDF file from HTML string in asp.net with vb

开发者 https://www.devze.com 2023-03-18 11:20 出处:网络
I want to generate PDF file from HTML string and that PDF file I have to attach in mail using as开发者_运维问答p.net. I try ghtmldoc.exe, it will generate corrupted pdf file.

I want to generate PDF file from HTML string and that PDF file I have to attach in mail using as开发者_运维问答p.net. I try ghtmldoc.exe, it will generate corrupted pdf file.

I also use iTextsharp. It generate PDF without format though I don't use CSS in that HTML page. Only data in html file is converted in PDF.


I've always found Winnovative HTML to PDF converter very useful for doing things like this:

http://www.winnovative-software.com/Html-To-Pdf-Converter.aspx

You can either specify a URL to convert to PDF, or specify a HTML string to convert to PDF instead.

An open source solution, would be iTextSharp:

http://sourceforge.net/projects/itextsharp/


Exporting to pdf is really made simple by telerik. check this link. Telerik has a good look too. so if you are not late to change over to telerik, i suggest do that.

0

精彩评论

暂无评论...
验证码 换一张
取 消