How to create a formatted pdf or eps spreadsheet using Python?

Usually I have some modeling data that I would like to include in a presentation in a table. I usually use Open (Libre) -Office Impress for my presentation. Then I copy-paste from my results into the Impress table. I find it a little tedious. Since I already have results in Python, is there a way to auto-generate a .pdf or .eps table from this data so that I can just quickly import .pdf or .eps into Impress?

+7
source share
4 answers

<plug> I wrote TableFactory to do this for my websites. </plug> This is the wrapper around ReportLab (at least the PDF generator class). You can see the example code and output it at http://kstrauser.github.com/tablefactory/ .

+4
source

The standard way to do this is in Python ReportLab , but installing it is not that simple and not to use.

I don’t know exactly what the requirements are, but a workaround would be to create HTML reports and convert them to PDF.

Depending on the platform you are using, you may have different approaches. For example, for OSX it’s very simple, / System / Library / Printers / Libraries / convert

+1
source

Take a look at Reportlab's open source offerings at http://www.reportlab.com/software/opensource/

0
source

Well, this question has been raised for a long time, but recently I got the opportunity to try out the report lab. Installation is simple and does not sweat at all. Just go to your homepage and check their documentation.

For those people who always delve into the "Basic Textbook". You can try to go through a simple tutorial on this blog for a better overview of whether this module depends on your needs or not. http://www.blog.pythonlibrary.org/2010/03/08/a-simple-step-by-step-reportlab-tutorial/

Happy coding.

0
source

All Articles