I need to write JSON data line by line to PDF. How do I determine if last line has reached and accordingly add a new page?
I have searched the internet but I am unable to get code that prints huge chunk of data in loop with wrap text and page numbers.
Can someone help me with the same? This is the 1st time I am working with PDFBox though I have used iText very flexibly.