gitbrent / PptxGenJS

Create PowerPoint presentations with a powerful, concise JavaScript API.
https://gitbrent.github.io/PptxGenJS/
MIT License
2.94k stars 639 forks source link

[BUG| Auto-paging in slide.addTable is not respecting in newly added slide #1319

Open agabale-maersk opened 8 months ago

agabale-maersk commented 8 months ago

I am using autopaging while generating pptx file using PPTXGenjs library. I have more than 30 records to be aaded to table. I set autopage: true to parent slide along with width,height, X and Y co-ordinates for the table. Auto paging creating a new slide and adding remaining records there, but again in newly added slide records are overflowing and not respecing auto-paging there.

slide10.addTable(stakeHolderTable,{x:0.5,y:0.5,w:9,autoPage:true,autoPageRepeatHeader:true,newSlideStartY:0.5});

Skiiping remaining code. Kindly advise on this one.

agabale-maersk commented 8 months ago

@gitbrent Kindly advise on this one