views:

91

answers:

3

I have had a look at this thread:

http://stackoverflow.com/questions/327700/how-to-dynamically-generate-a-pdf-from-googles-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

+1  A: 

if you can use an external lib, there is xhtml2pdf

Guillaume Lebourgeois
Can't do that. As i want everything to run on app engine only.
demos
btw, will this pickup embedded images in the html file by itself?
demos
No, I don't think so.
Guillaume Lebourgeois
+1  A: 

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

Nik
Awesome! I don't think i can use this in appengine directly though but i am very happy with the rendering engine! the PDF was exactly the same as the web page! nicely done.
demos
+1  A: 

Pdfcrowd offers an online HTML to PDF API. The API is very simple and all you need is to add a single .py file to your project. Have a look at the API documentation.