将HTML转换为PDF在.net在Azure上 [英] Convert HTML to PDF in .Net on Azure

查看:179
本文介绍了将HTML转换为PDF在.net在Azure上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题,如何将HTML转换为PDF在.net 有已经讨论过了。

The question, how to convert HTML to PDF in .Net has already been discussed.

然而,所建议的工具,<一href=\"http://social.msdn.microsoft.com/forums/azure/en-US/eb48e701-8c0b-4be3-b694-2e11cc6ff2e1/wkhtmltopdf-in-windows-azure?forum=windowsazurewebsites$p$pview\">wkhtmtopdf,不Azure的发挥好

However, the suggested tool, wkhtmtopdf, doesn't play well with Azure

那么,请问有什么好的免费的HTML到PDF转换器,它也可以在Azure上使用吗?

So, are there any good free HTML to PDF converter, which can also be used on Azure?

推荐答案

wkhtmltopdf在Azure虚拟机而不是在Azure网站将工作。我一直在用它微软开发人员直接联系,因为我遇到了在Azure网站同样的问题。该解决方案是创建一个虚拟机你自己的云服务。我创建了一个 http://www.html2pdfrocket.com/ 这解决了我和它做免费提供商业用,因为微软已经发起主办。

wkhtmltopdf will work on Azure VM's but not on Azure Websites. I have been in direct contact with the Microsoft developers about it as I ran into the same problem on Azure Websites. The solution is to create your own cloud service on a VM. I created one http://www.html2pdfrocket.com/ which solves that and I made it freely available for commercial use, as Microsoft have sponsored the hosting.

它基本上暴露wkhtmltopdf作为一种服务和被设计成一个简单的服务不是无所不包。因此它可以制成做任何wkhtmltopdf可以做,但仅此而已。随时给我反馈它,希望它会做你的需要 - 它已经嵌入在一些商业产品和平台,以便在这里停留

It basically exposes wkhtmltopdf as a service and is designed to be a simple service not all encompassing. So it can be made to do anything wkhtmltopdf can do but no more than that. Feel free to send me feedback on it, hopefully it will do what you need - it is already embedded in several commercial products and platforms so is here to stay.

---编辑2015年6月---

请注意,由于滥用,包括多人批处理万PDF的一次(更糟糕:(,不要问..)我最终不得不通过收取新用户的小限制这种previously免费服务费每个月,这也有助于对加负载额外的服务器集群鉴于申请人数的#超过> 200的转换 - 所以现在只有约97%的客户都是免费的,对不起,如果你错过了无论哪种方式,它很容易如果你愿意的话你自己创建的虚拟机上自己的服务。

Please note due to abuse including multiple people batch processing 10,000 pdf's at once (and worse :(, don't ask..) I've eventually had to limit this previously free service by charging new users a small fee for more than >200 conversions each month, which also helps towards the extra server clusters added for load given the # of signups - so now only about 97% of customers are free, sorry if you missed out. Either way, it's easy enough to create your own service on a VM if you wish to do so yourself.

这篇关于将HTML转换为PDF在.net在Azure上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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