如何在MVC3网站的所有页面上实现“打印为PDF"或转换为PDF [英] How to implement Print to PDF or convert to PDF on all the pages of MVC3 website

查看:67
本文介绍了如何在MVC3网站的所有页面上实现“打印为PDF"或转换为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


如何在MVC3网站的所有页面上实现打印为PDF"或转换为PDF".
如果用户单击获取PDF"按钮,则应该能够将当前页面转换为PDF.

请帮助伙计们.


谢谢.

Hello,


How to implement Print to PDF or convert to PDF on all the pages of MVC3 website.
If the user click on a button Get PDF , should be able to get the current page as PDF.

Please Help Guys.


Thanks.

推荐答案

我建​​议使用开放源代码库iText,更确切地说,使用其名为.NETSharp的.NET端口.
请参阅:
http://en.wikipedia.org/wiki/IText [ http://itextpdf.com/ [ ^ ],
http://sourceforge.net/projects/itextsharp/ [
I would advise to use the Open Source library iText, more exactly, its .NET port called iTextSharp.

Please see:
http://en.wikipedia.org/wiki/IText[^],
http://itextpdf.com/[^],
http://sourceforge.net/projects/itextsharp/[^] (download it here).

—SA


这篇关于如何在MVC3网站的所有页面上实现“打印为PDF"或转换为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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