HTML文档为PDF? [英] HTML document to PDF?
问题描述
我有一个ASP.NET网页是一个动态生成的报告。出于商业原因,这个确切的报表需要制作为PDF格式。什么是做到这一点的最好方法是什么?设置所选的打印机为Adobe PDF是不是一种选择。
I've got an ASP.NET web page that is a dynamically generated report. For business reasons, this exact report needs to be produced as a PDF. What's the best way to do this? Setting the selected printer to Adobe PDF is not an option.
了解编程从头开始创建PDF文件?有没有一种方法,以使其在某些浏览器控件,然后保存输出中?
Learn to programmatically create PDFs from scratch? Is there a way to render it in some browser control, then save the ouput?
推荐答案
wkhtmltopdf - 我在Windows编译它,它的伟大工程。它使用的WebKit(Safari浏览器,浏览器等)来呈现一个HTML页面转换成PDF,并且它是免费的!
wkhtmltopdf - I compiled it in Windows and it works great. It uses WebKit (Safari, Chrome, etc.) to render an HTML page into PDF, and it is free!
这篇关于HTML文档为PDF?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!