在asp.net网页生成PDF [英] Generating Pdf from webpage in asp.net

查看:422
本文介绍了在asp.net网页生成PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您能给我自由/ Openspurce库等,可以在asp.net应用程序集成,以生成PDF从HTML代码片段的一些建议。我将生成显示在DataGrid和表发票。是否有将与数据网格打印整个表格转换成PDF一些现成的库。 iTextSharp的似乎不错,但我必须做添加表等等等等的艰巨的工作,当一切都已经在网页。
这是一种可能的重复,但它从这是不希望全页生成PDF格式
可能的复制问题

Could you give me some recommendations on free/Openspurce library etc that could be integrated on asp.net application to Generate Pdf out of Html fragments. I will be generating Invoices that is displayed in DataGrid and tables. Is there some readily available library that would print the whole Table with Datagrid into Pdf. ITextSharp seems nice but i will have to do the tough work of adding tables and blah blah when everything is already in the webpage. this is a possible duplicate but it generates pdf from Full page which is not desired Possible duplicate question

推荐答案

iTextSharp的做你问几乎是什么,是开源的,但是,对于转换过程API一直没有感动了多年,已经过时。因此,我建议一个商业产品。

ITextSharp does almost what you ask and is Open Source, however the API for conversion process has not been touched for years and is outdated. I therefore would recommend a commercial product.

喜欢的东西 Winnovative HTML到PDF转换

说实话,我看它这样,你可以的保存的钱通过购买许可证的商业产品的,而不是花几天开发自己的解决方案。

To be honest I look at it like this, you can save money by buying a licence for a commercial product rather than spending days developing a solution yourself.

修改如果是单独生成发票,然后我会用iTextSharp的,因为它并不需要很长时间来学习的基础知识。但是,如果你想成为能够完整丰富的网页转换成PDF,然后往下走的商业路线。

Edit If it is for generating invoices alone then I would use iTextSharp as it does not take long to learn the basics. However if you want to be able to convert a full rich webpage into a PDF then go down the commercial route.

这篇关于在asp.net网页生成PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆