Skip to content
Advertisement

how to separate list to different tables & print the tables to individual pages pdf in reportlab?

I have a list of lists

JavaScript

and i want to create a different table per list: 1 list into 1 table per page, just like this: enter image description here

how do i separate the list into different tables? and have them on different pages using reportlab? assuming that the number of the lists is not always 2 because the data came from a database?

Advertisement

Answer

Simply use for-loop to work with every list separatelly

JavaScript

Minimal working code

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement