开发者

How to use Pisa on Google App Engine to generate PDF from HTML/CSS

开发者 https://www.devze.com 2022-12-28 12:46 出处:网络
I\'m developing a simple GAE application that crawls some data from a given site and presenst it formatted in html/css.

I'm developing a simple GAE application that crawls some data from a given site and presenst it formatted in html/css.

What I would like to do now is to offer an Export to PDF feature trasforming the formatted html/cs开发者_开发技巧s to PDF.

I've imported Reportlab Toolkit and it works good but it's not what I need since it forces me to create PDF manually like:

pcanvas.drawString(10, 10, 'This is the title Blah blah blah')

What I really need is a library like PISA that trasforms Html/Css to PDF.

Anyone has managed to succesfully intregrate and use PISA on Google App Engine?


http://www.xhtml2pdf.com itself is hosted on GAE for several years now.

This discussion is about the problems you face on GAE.

http://groups.google.com/group/xhtml2pdf/browse_thread/thread/c002418fe31eef98/366112086b795143

0

精彩评论

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

关注公众号