Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write table structure data in PDF file in python?

+----+-----------------------------+
| id | name                        |
+====+=============================+
| 47 | Some textjogjwojgopwgpowmok |
+----+-----------------------------+
| 47 | Some textjogjwojgopwgpowmokg|
+----+-----------------------------+
| 47 | Some textjogjwojgopwgpowmokg|
+----+-----------------------------+
| 47 | Some textjogjwojgopwgpowmokg|
+----+-----------------------------+
| 47 | Some textjogjwojgopwgpowmokg|
+----+-----------------------------+

I want to write the above table in PDF file in above format using python libraries. Appreciate immediate response.

like image 305
Vimal Annamalai Avatar asked Feb 22 '17 08:02

Vimal Annamalai


1 Answers

You can generate the table using matplotlib and save it to PDF from matplotlib. There's also reportlab.

like image 140
andreibechet Avatar answered Sep 16 '22 11:09

andreibechet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!