I know this thread is quite old but it's probably still relevant. We created a report tool since generating pdf reports in a web application is a common problem and none of the existing solutions were optimal for us. We recently released the first stable version 1.0 of our tool ReportBro:
https://www.reportbro.com ReportBro contains a designer (javascript plugin) to create report templates which can easily be integrated in a web application. Server-side we developed a python package - which you can either download or install via pip - to create the pdf (or xlsx) file with a given report template. Alex On Friday, January 30, 2015 at 12:14:09 PM UTC+1, Tom Lazar wrote: > > Fyi I've had good experiences using phantomjs > > Sent from a phone, please excuse the brevity. > > On 25.01.2015, at 18:17, Wichert Akkerman <[email protected] <javascript:>> > wrote: > > > On 25 Jan 2015, at 14:40, Adam Morris <[email protected] <javascript:>> > wrote: > > Okay, I get that bit now, and coded it up, but when I go to render it, I > use the pyramid.renderers.render object but obviously it ends up > downloading a corrupted file because it's not even in PDF format. > > > You are still rendering a .pt file, so I’m guessing you are generating > HTML, not PDF. If you want to generate PDF you will need to use a PDF > library. > > So does reportlab have something to take that html/css and paint it to a > Canvas or something? > > > I use z3c.rml, which uses RML as input to generate PDF. If you want to use > HTML & CSS you’ll need to find a library that can convert HTML to PDF. > > Wichert. > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at http://groups.google.com/group/pylons-discuss. > For more options, visit https://groups.google.com/d/optout. > > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/91d6864f-d84a-4874-a284-6402c920b94c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
