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

假装没事ソ 提交于 2019-12-08 03:36:29

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/42386163/how-to-write-table-structure-data-in-pdf-file-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!