I'm trying to write an algorithm that will add additional pages to a PDF based on whether a text field gets filled up, and then print the overflow to the added pages.
I'm using iTextSharp with no option to change libraries.
Does anybody have any suggestions on how to flag if the field is overflowing based on the text I put into it?
Edit: Overflow is now being put onto a fresh page. Unfortunately, the original field doesn't take up a full page - it covers about half a page, around the bottom. Overflow is being printed in the same area on the added pages, leaving a massive empty gap at the top of each page.
Does anyone have any ideas on how to resize the field on additional pages?