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

Vimal Annamalai picture Vimal Annamalai · Feb 22, 2017 · Viewed 14.5k times · Source
+----+-----------------------------+
| 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.