ah OK. Another library that was mentioned in an earlier thread was Pisa: http://www.xhtml2pdf.com/
"pisa is a html2pdf converter using the ReportLab Toolkit, the HTML5lib and pyPdf. It supports HTML 5 and CSS 2.1 (and some of CSS 3). It is completely written in pure Python so it is platform independent. The main benefit of this tool that a user with Web skills like HTML and CSS is able to generate PDF templates very quickly without learning new technologies. Easy integration into Python frameworks like CherryPy, KID Templating, TurboGears, Django, Zope, Plone, Google AppEngine (GAE) etc." Sounds like just what I am after. On Oct 22, 1:20 pm, mdipierro <[email protected]> wrote: > It only relies on PIL you need to import images into documents. > It has some optional c modules for speed buth works without those. > > On Oct 21, 8:42 pm, Richard <[email protected]> wrote: > > > Is reportlab really pure Python? According to the installation > > documents it relies on freetype2 and PIL. > > Has anyone got it working on GAE? > > > On Oct 22, 11:23 am, mdipierro <[email protected]> wrote: > > > > reportlab is pure python and it include platypus which has document > > > creation API very similar to XML. You can write a mapper and I would > > > be suprised if somebody has not already made one. > > > > On Oct 21, 7:11 pm, Richard <[email protected]> wrote: > > > > > hello, > > > > > I am after a pure Python solution (for the GAE) to convert web pages > > > > to PDF. > > > > > I had a look at reportlab (which was recommended in a previous > > > > thread), but the documentation focuses on generating PDFs from > > > > scratch, rather than converting from an existing webpage. (My user > > > > case is I want to let users download a PDF render of my report page, > > > > and I plan to update this report webpage so I don't want to maintain 2 > > > > versions of it.) > > > > > I have control over the webpages I want to render so I can ensure they > > > > are well formed XHTML. > > > > Do you know of a pure Python solution to convert XHTML to PDF? > > > > > thanks, > > > > Richard > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

