5
+----+-----------------------------+
| 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.

Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
Vimal Annamalai
  • 139
  • 1
  • 2
  • 12

1 Answers1

8

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

Community
  • 1
  • 1
  • I will be getting data as same format, so i don't want create table format and all. I just want to write same exact data which i posted – Vimal Annamalai Feb 22 '17 at 09:11
  • If I understand correctly what you basically want is to write a string to pdf. Try [reportlab](https://www.reportlab.com/docs/reportlab-userguide.pdf) – andreibechet Feb 23 '17 at 13:16