Python Forum

Full Version: Generate PDF reports
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I need to generate nice-looking pdf reports with charts and tables.
Right now i am looking at three different solutions, but can't figure out which is the most appropriate.


-1 Using Matplot lib to generate charts and then using PyLatex to generate pdf
-2 Using Plotly to generate charts and generating pdf reports (https://plot.ly/python/pdf-reports/#disp...ted-to-pdf)
-3 Using Jupyter notebook

So far, i understand how the solution number one works but it does not sounds like the perfect solution, latex is not made for reports i guess.
Solution 2 seems more appropriate, but this would require building an html page to generate a report.
I read about Jupyter notebook but i can't figure out if that is a good solution.

Any help? Additional solution would be very appreciated as well.

Thanks
Hello,
I have not been making PDF reports in Python yet, but you might like ReportLab (link to website).

Mike Driscoll (Mouse vs. Python) has a blog post on it as well as recently released book.
There are also other blog posts regarding PDF creation (not necessarily with ReportLab) on Mike's blog. Some posts are old so make sure the module he is working with is still maintained.
Thanks a lot!! ReportLab looks very interesting, it looks like it does a pretty good job.
However, for now i am looking for a free solution and ReportLab is not. I will look into the other link you gave.

If you happen to think at a free solution please tell me :)

Thanks
ReportLab has both, commercial and free versions. The very first link in my previous post points you to ReportLab free open source version ;)
I did little more research. There are actually two versions of the software: Report Lab open source and ReportLab Plus.
The first one, Report Lab Open Source seems to be completely free.

Yes thanks a lot!! You are right, the first link points to the free version!!

Thanks a lot for helping, python is amazing, making good reports would just be as amazing Smile Smile .
I vote for latex (perhaps pylatex, which I don't know). It is much easier to master than reportlab, and also more flexible. You could perhaps use latex templates together with a template engine such as mako or jinja. Also have a look at doconce, I used it a lot to generate documents.
You are welcome, I am glad I could be of help. And I hope you found the right tool for what you need! =)
(Aug-26-2018, 01:07 PM)Gribouillis Wrote: [ -> ]I vote for latex (perhaps pylatex, which I don't know). It is much easier to master than reportlab, and also more flexible. You could perhaps use latex templates together with a template engine such as mako or jinja. Also have a look at doconce, I used it a lot to generate documents.

Thanks for helping. I will have a look at your solution as well, however, on a first look, it seems a bit complex.

Thanks