问题
+----+-----------------------------+
| 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