将网页导出为pdf,并在页面上显示图像 [英] export web page to pdf with image on page
本文介绍了将网页导出为pdf,并在页面上显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在一个项目上,我必须导出包含图像,gridview的网页.我想将该页面导出为pdf文件.我想显示表格构造器和图像,因为它在pdf上.我在google上尝试过,但找不到所需的解决方案.
I am working on one project where i have to export the web page which contains image, gridview. I want to export that page to pdf file. I want to show the table structor & image as it is on pdf. I tried it on google but i can''t find the desired solution.
推荐答案
是的,您可以使用iTextSharp
进行操作.但是您不会直接得到任何示例.您需要相应地自定义代码.
Yes you can do it usingiTextSharp
. But you will not get any example directly.You need to customize your code accordingly.
Here you will get some examples.
另一个选项(虽然不是免费的)是 abcpdf .
效果很好.
Another option, although not free is abcpdf.
It works reasonably well.
这篇关于将网页导出为pdf,并在页面上显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文