pdfkit-table
pdfkit-table copied to clipboard
Table does not add new page automatically anymore
I have noticed that the table doesn't create a new page if the content is long. I found an option called addPage but setting this to true throws an error.
ReferenceError: Cannot access 'onFirePageAdded' before initialization
I'm facing the same issue.
After a small investigation, this line seems to be the source of the problem.
Removing lockAddPage = true; resolved the issue for me.
@natancabral Could you please verify this is the correct fix, and publish it ?
I'm facing the same issue, Thanks @ELIONET!, it solved the problem.
I am seeing the same issue. I have a for-loop that renders tables. The cursor just gets reset to the top of the same page. I have tried removing lockAddPage = true but see no changes. I am running "pdfkit-table": "^0.1.99" on node v14.17.0.
i'm still having this problem [email protected] that the table continues at the top of the page instead of adding a new page.
solved it by setting
lockAddPage = false;
on line 486.
i'm still having this problem
[email protected]that the table continues at the top of the page instead of adding a new page. solved it by settinglockAddPage = false;on line 486.
@issogood I tried this and it's still showing the Cannot access 'onFirePageAdded' before initialization error. Did you change anything else? Thanks
i'm still having this problem
[email protected]that the table continues at the top of the page instead of adding a new page. solved it by settinglockAddPage = false;on line 486.@issogood I tried this and it's still showing the
Cannot access 'onFirePageAdded' before initializationerror. Did you change anything else? Thanks
Ah nevermind I just remove the addPage option and it worked :D
i'm still having this problem
[email protected]that the table continues at the top of the page instead of adding a new page. solved it by settinglockAddPage = false;on line 486.@issogood I tried this and it's still showing the
Cannot access 'onFirePageAdded' before initializationerror. Did you change anything else? Thanks
Just adding that I have the same issue, can't use the addPage option because of Cannot access 'onFirePageAdded' before initialization