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 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
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))\
I used succesfully web2py-appreport.
https://github.com/lucasdavila/web2py-appreport
Ciao.
Paolo
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
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
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
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
8 matches
Mail list logo