-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error using jsPDF cell table() method #2223
Comments
Try this:
|
Now it's working. Documentation is not very explicit about this point. Thank you so much @viraj4422 |
I did not refactor cell.js till now. Try autoTable plugin as an alternative ;) |
@arasabbasi There is also an issue regarding Page 2: Is this a known bug ? Would you recommend going with auto-table ? |
@viraj4422 I am having same issue of table line overlapping on second page, have you found a solution, would you mind share it if you did, please? Thanks |
Maybe you should use autotable plugin by @simonbengtsson It is much more into table representation than jsPDF will be. |
@viraj4422 Will be fixed in next release. |
Change the type of the argument `headers`of the method `table` from a string array to an object array (with specific properties). See: parallax/jsPDF#2223
Change the type of the argument `headers`of the method `table` from a string array to an object array (with specific properties). See: parallax/jsPDF#2223
This remains broken, and also the doc for the table() method suggests headers should be an array of strings, but the examples show an array of objects, Feb 2021 |
@stevematdavies this should have been fixed in #3087, but is not yet released on npm. |
Hello,
First, I want to say, what an amazing framework!
I was testing it to implement in a current project that I am working on and I am having some issues creating tables on the document. Based on your documentation, I am doing everything correctly. Here is a piece of code so you can check the problem that I am having:
JS File
HTML File
The error that I am having is this:
Here is the codepen link so you can check the problem on your console:
https://codepen.io/anon/pen/EGQzNr
Thank you for your attention and support, and keep up the good work!
The text was updated successfully, but these errors were encountered: