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.

1 Answer 1

8

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

Sign up to request clarification or add additional context in comments.

2 Comments

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
If I understand correctly what you basically want is to write a string to pdf. Try reportlab

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.