[web2py] Re: From html view to pdf.

2011-10-25 Thread apple
Very easy using pisa. You also need to install reportlab and html5lib but once these have been installed it is simple: # to directly get the html for a view html = response.render(myview.html, locals()) filename = C://outputpdf.pdf f = file(filename, wb)

[web2py] Re: From html view to pdf.

2011-10-25 Thread Massimo Di Pierro
web2py has a generic.pdfIf you just return html and view the page with .pdf it will be serialized in pdf using pyfpdf. Not all html can be serialized this way. On Oct 24, 9:23 pm, chris_g chrisgu...@gmail.com wrote: Annet, When I explored this a few years ago, I ended up going with an XML

[web2py] Re: From html view to pdf.

2011-10-25 Thread annet
Thanks for your replies. Massimo, How do I use generic.pdf in case these are my controller and view: Controller: def classtimesweek(): rows=db((db.lesrooster.bedrijf_id==1)(db.lesrooster.dag_id==db.dag.id) \ (db.lesrooster.level_id==db.level.id))\

[web2py] Re: From html view to pdf.

2011-10-25 Thread Paolo Caruccio
I used succesfully web2py-appreport. https://github.com/lucasdavila/web2py-appreport Ciao. Paolo

[web2py] Re: From html view to pdf.

2011-10-25 Thread Massimo Di Pierro
First time I see this. Cool! On Oct 25, 10:18 am, Paolo Caruccio paolo.carucci...@gmail.com wrote: I used succesfully web2py-appreport. https://github.com/lucasdavila/web2py-appreport Ciao. Paolo

Re: [web2py] Re: From html view to pdf.

2011-10-25 Thread Bruno Rocha
http://labs.blouweb.com/web2pyappreport my friend Lucas created it. now it can work with Pisa and Pyfpdf Em 25/10/2011 14:17, Massimo Di Pierro massimo.dipie...@gmail.com escreveu: First time I see this. Cool! On Oct 25, 10:18 am, Paolo Caruccio paolo.carucci...@gmail.com wrote: I used

Re: [web2py] Re: From html view to pdf.

2011-10-25 Thread Ovidio Marinho
I used appreport and very good, this could be integrated with web2py. Ovidio Marinho Falcao Neto Web Developer ovidio...@gmail.com ITJP - itjp.net.br 83 8826 9088 - Oi 83 9334 0266 - Claro

[web2py] Re: From html view to pdf.

2011-10-24 Thread chris_g
Annet, When I explored this a few years ago, I ended up going with an XML solution called RML (report markup language). This was developed by the makers of reportlab, but there are also free implemntations of RML available (such as the z3c implementation.) Once I had installed rml2pdf developed