Hi, I've been using iTextSharp PDF library for a while, but now want to do something tricky. At least it seems tricky.
I simply want to change the dimensions of a page in a PDF document I'm busy creating.. but change it *after* I've added content to it. In other words, kind of "crop" the page when I'm finished putting stuff on it, so the height of the page matches the top and bottom extents of the content (which I only know after the content is created).
Is that possible? SetPageSize() only seems to take effect when a new page is added, it doesn't affect the current page. Is there a "crop page" function of some kind?
One solution may be to add the content to a template, then do SetPageSize() and NewPage(), with the correct dimensions, adding the content to the new (2nd) page. But then the question is, how can I delete the first (unwanted) page?
Thanks if anyone can help!