I'm creating a PDF using itext and finally closing the document with document.close(). After generating the pdf, there are several ways to split the up.
The problem is i need to split the pdf before creating as a whole in the first place.
Is there a way to split by number of pages dynamically or control by number of pages?
Thanks in advance.