I want to generate a pdf using itext. I would at some point while the content was added to make a page break. I need to insert several separate conenidos dependence origin so I ask the user to do so on separate pages. Any ideas???
document.newPage() tells iText to place subsequent objects on a new page. The new page will only actually get created when you place the next object. Also,
newPage() only creates a new page if the current page is not blank; otherwise, it's ignored; you can use
setPageBlank(false) to overcome that.
Refer below link for an example: http://itextpdf.com/examples/iia.php?id=99