title: PDFBOX - Unknown number of pages
body: <p>I am investigating a replacement for iText and have been looking at the API and example code for PdfBox. I am slightly confused by its useage though, it seems I need to manually create the page objects which implies I need to know the number of pages beforehand or at least work out when its time to create a new page.</p>
  
  <p>I generally use PDF generation for reports based on user configurable parameters which call stored procedures which can return varying amounts of data.</p>
  
  <p>My question is quite simple, is it down to me to try and work out how much data will fit onto a page and create the pages programmatically? </p>
  
  <p>The API seems to state that each page object represents a single page. From my experience of iText I do not need to worry about this, I simply write my data to the document and the pages are created for me based on the content I am placing into it.</p>