pdfkit-table icon indicating copy to clipboard operation
pdfkit-table copied to clipboard

Table does not add new page automatically anymore

Open jetoneza opened this issue 3 years ago • 7 comments
trafficstars

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

jetoneza avatar Sep 09 '22 02:09 jetoneza

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 ?

ELIONET avatar Sep 21 '22 10:09 ELIONET

I'm facing the same issue, Thanks @ELIONET!, it solved the problem.

nicodesd avatar Oct 21 '22 15:10 nicodesd

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.

sshakyaUR avatar Nov 25 '22 17:11 sshakyaUR

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.

issogood avatar Mar 08 '24 12:03 issogood

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.

@issogood I tried this and it's still showing the Cannot access 'onFirePageAdded' before initialization error. Did you change anything else? Thanks

weebao avatar Aug 12 '24 13:08 weebao

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.

@issogood I tried this and it's still showing the Cannot access 'onFirePageAdded' before initialization error. Did you change anything else? Thanks

Ah nevermind I just remove the addPage option and it worked :D

weebao avatar Aug 12 '24 13:08 weebao

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.

@issogood I tried this and it's still showing the Cannot access 'onFirePageAdded' before initialization error. 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

jordanwegener avatar Sep 15 '24 23:09 jordanwegener