开发者

Convert HTML to PDF in python on Google App Engine

开发者 https://www.devze.com 2023-01-09 09:03 出处:网络
I have had a look at this thread: How to dynamically开发者_如何学JAVA generate a pdf from Google's appengine?

I have had a look at this thread:

How to dynamically开发者_如何学JAVA generate a pdf from Google's appengine?

I know we can use ReportLab, however, I am not sure how i can give it a HTML file and get a PDF.

Basically, HTML in and PDF out


if you can use an external lib, there is xhtml2pdf


Try this: html-2-pdf.com

It's build in top of: wkhtmltopdf

It's really easy to use it. It's stand-alone so just upload a file on your (Linux) system and you are ready to produce PDFs


xhtml2pdf states that the source is pure python. you should be able to use this as a module in your application.

0

精彩评论

暂无评论...
验证码 换一张
取 消