从HTML生成PDF

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

问题描述

在ASP.NET项目中,我需要生成一个PDF文件供用户下载,该文件由HTML制成. HTML中也包含img,需要嵌入.如果链接是可单击的,那也很好.

现在,我已经尝试了各种不同的产品演示,但是它们要么都不起作用,要么是经典的ASP,要么非常昂贵.

这是用于商业应用.

最有前途的(尽管很昂贵)看起来像 http://www.websupergoo.com/abcpdf-1.htm [ ^ ],但示例代码从HTML到PDF(找到此处: http://www.websupergoo.com/helppdf8net/source/5-abcpdf6/doc/1-methods/addimagetochain.htm [ ^ ])在我尝试的每个页面上都以非常普通的错误消息破坏了IIS.

请有人为此推荐产品.不幸的是,我无法在服务器上运行CMD line应用程序,因此它必须仅仅是我坚持使用的dll.

谢谢!

In an ASP.NET project I need to generate a PDF for the user to download which is made from HTML. That HTML has img''s in it too, which need to be embedded. It would also be great if links are clickable.

Now i''ve tried a whole range of different product demo''s, and they all either don''t work, are classic ASP, or are horridly expensive.

This is for a commercial application.

The most promising (although expensive) looked like http://www.websupergoo.com/abcpdf-1.htm[^] but the example code from HTML to PDF (found here: http://www.websupergoo.com/helppdf8net/source/5-abcpdf6/doc/1-methods/addimagetochain.htm[^])crashes IIS, on every page I try, with a very generic error message.

Please can someone suggest a product for this. I can''t run an CMD line app on the server unfortunately, so it does have to be just a dll that I stick in.

Thanks!

推荐答案


这篇关于从HTML生成PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 08:36
查看更多