保存我的ASP.NET MVC页的PDF我的、ASP、NET、MVC

2023-09-04 01:20:33 作者:记忆从未沉默过丶

如何拯救我的ASP.NET MVC页面PDF?

How can i save my ASP.NET MVC page as PDF?

推荐答案

据你想要的东西,是非常容易使用。看看 https://github.com/andyhutch77/MvcRazorToPdf

It you want something that's very easy to use. Take a look at https://github.com/andyhutch77/MvcRazorToPdf

试过了,在我的项目进行测试。只是阅读的文档。这是因为1那么简单,2,3:)

Tried and tested in my projects. Just read the documentation. It's as easy as 1, 2, 3. :)

如果您遇到了一些问题,去他们的GitHub页面,点击标签的问题,也许大家的一些问题已经得到解决那里。

If you encounter some issues go to their github page and click the Issues tab, maybe some of your questions are already resolved there.

P.S。

有些需要一个可执行程序运行时,您的应用程序部署到Azure,因为Azure不支持exe文件(我猜安全目的)将无法正常工作的PDF库,否则你只会创建一个webjob为exe文件。

Some of the PDF libraries that require an executable program to run will not work when your app is deployed to Azure because Azure doesn't support exe files (I guess for security purposes) else you'll create a webjob just for the exe file.