C# html to pdf converter using wkhtmltopdf or any other free tools [closed]

ⅰ亾dé卋堺 提交于 2019-12-05 17:50:19

Your issue is that you are attempting to use wkhtmltoimage.exe to generate a PDF. Use wkhtmltopdf.exe instead and you should be fine.

C:\Program Files\wkhtmltopdf>wkhtmltopdf.exe www.google.com go.pdf

As far as your question, I don't really believe that there is a perfect tool. I have been very satisfied with wkhtmltopdf however.

I'm a fan of DocRaptor. It's easy to integrate into web apps and can use C# to convert HTML to PDF or XLS format.

Here's a link showing how to use it

How about iText? http://itextpdf.com/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!