是否有用于将 HTML 转换为 PDF 的网络服务?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5344176/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 07:25:17  来源:igfitidea点击:

Is there a web service for converting HTML to PDF?

htmlweb-servicespdf

提问by Artilheiro

Is there a web service for converting HTML to PDF?

是否有用于将 HTML 转换为 PDF 的网络服务?

Currently we are doing this ourselves, but we would like to take this load off our servers.

目前我们正在自己做这件事,但我们希望从我们的服务器上减轻这种负担。

回答by Josh Colter

DocRaptorshould do the trick. It's a web service, so you'll be able to give your server a break.

DocRaptor应该可以解决问题。这是一个网络服务,所以你可以让你的服务器休息一下。

回答by Steve Mayne

You could use the Python ReportLab library from Google's AppEngine, or if you are happy to use a 3rd-party service, PDFCrowdwill do this for you.

您可以使用 Google AppEngine 中的 Python ReportLab 库,或者如果您愿意使用 3rd 方服务,PDFCrowd将为您执行此操作。

回答by Asme Just

I use this one http://htmlpdf.com/and this one I've just discovered http://pdf-ace.com/

我使用这个http://htmlpdf.com/和这个我刚刚发现的http://pdf-ace.com/