Last post Apr 23, 2008 10:18 PM by mabellez
Apr 22, 2008 09:32 PM|mabellez|LINK
I'm using iTextSharp to generate a pdf file. Does anybody know how to insert a page break into the pdf file so that each pdfPTable will be printed in a separate page?
I know in css I can use break-after-always, etc. But I have no clue how to do that in C# for phf.
Any help is appreciated!
Apr 23, 2008 06:31 AM|Mikesdotnetting|LINK
I would have though that you simply add a new page to the document.
Apr 23, 2008 02:06 PM|mabellez|LINK
Thank you for the reply! Would you please explain a little more to me? I do not know how to add a new page to the document.
There will be 1+ tables depend on what we have in the database. So after the first table was added, how to put the second table on the second page?
Apr 23, 2008 06:53 PM|Mikesdotnetting|LINK
You will probably find a method of the document object called newPage(). The C# documentation for iTextSharp is poor, so I understand that most users consult the Java reference material here:
http://itextdocs.lowagie.com/tutorial/general/faq/index.php#newpage. The syntax is so similar that you should be able to follow along.
Apr 23, 2008 10:18 PM|mabellez|LINK
Thank you so much Mikesdotnetting!!! That's exactly what I am looking for!
Thank you thank you!!!!![Yes]