views:

46

answers:

2

Hi!

I know this tool looks up on a url and converts the repsponse to pdf. How do I convert a

<html> content.. </html> 

into a pdf?

I was looking at the help files on wkhtml2pdf and looks like it provides an option of stdin but I can't really figure out how to emulate stdin.

Also if you know a tool which does a better job, please suggest me some.

Thanks a lot!

A: 

wkhtmltopdf is a free tool, but it's not written in .NET and it could be kind of hard to integrate into your asp.net application.

you can take a look at iTextSharp, which is free, but cannot handle any kind of html, or you can take a look at commercial tools to convert html to pdf, like ExpertPDF or ABCpdf, that can handle any html/css.

Flores
Thanks a lot for the suggestion, I will take a look at them.
rlee923
A: 

I found a way. You can set up another to output the normal html. And use that url as the input value of wkhtml2pdf process.

rlee923