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
How to fill dynamic data into table longer than one page? #1046
Comments
Try with a Page Break function
|
Okay I tried it again by scratch and it works. I don't know what I did wrong in my first version though.
|
inside dd `var dd = { pageBreakBefore: function (currentNode) { return currentNode.id === 'mediaRow' && currentNode.pageNumbers.length > 1; } |
The sample contains blank table rows, for example: ["","","","",""] And it will break the page wrap. For example, replace this: [" ","","","",""] |
That's it! Thank you! |
Hey,
I want to fill data from a json file into a dynamic table with pdfmake.
I found this solution: #24
My problem is that if the table is longer than one page it doesn't create a new page.
Furthermore it would be nice that the table would print the table header on every page like it does in the example on the pdfmake playground because it doesn't do that with the solution above.
Below is the example out of the pdfmake playground:
You can also copy my code into the pdfmake playground (http://pdfmake.org/playground.html) to see my problem:
If you could help me you would make me really happy.
The text was updated successfully, but these errors were encountered: