How could I render a table? #1107
-
How could I render a table on the PDF page? After skimming through the documentation, I find react-pdf to be very intuitive and I can easily follow the examples. I would love to use it however I need to render simple tables which hold tabular data. I don't see a component for a table, however wager it could probably be built using either some text components with styling or the canvas component. I'm not familiar with either to be sure however would be grateful if someone could point me in the right direction. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
There is no table component officially just yet, but you can check this one out |
Beta Was this translation helpful? Give feedback.
-
I've built a simple example that shows how to implement a Table. It's pretty straightfoward, check it out: https://github.com/Chagall/react-pdf-table-example |
Beta Was this translation helpful? Give feedback.
-
Thank you both! Those projects look awesome |
Beta Was this translation helpful? Give feedback.
-
i am using GPT for creating table from my data. Now, when i download my PDF file which includes that table, it distorts the format of my table what to do? |
Beta Was this translation helpful? Give feedback.
I've built a simple example that shows how to implement a Table. It's pretty straightfoward, check it out: https://github.com/Chagall/react-pdf-table-example