I'm creating a PDF document that can vary in size in terms of pages. Is there a way to tell the Document to add additional pages automatically if needed and place the page elements on the extra page(s)?
So for example, I have a document with 5 page elements. Page element 3 is a dynamic height Table where the number of lines is determined at runtime.
Scenario 1:
======================================
Page element 3 ( dynamic height table) has 10 lines
All page elements fit on 1 Document page
Scenario 2:
======================================
Page element 3 ( dynamic height table) has 25 lines
All page elements don't fit on 1 document page.
As it stands now, my code only allows for 1 document page. And any elements that would need to be on page 2 are missing.