Using iText to create a document is like writing a file. Once you have written something it isn't easily undone. If you feel the need to undo the newpage() you should probably revise your program logic so that newpage isn't called when it isn't needed. Example: Let's say that each chapter of a document is supposed to start on a new page. If newpage() is called at the end of each chapter there will be a blank page at the end. A better way is to call newpage() at the start of every chapter (with exception of the first chapter, if the first page has already been created).
> > Ämne: > [iText-questions] Deleting an empty page in the PDf docuement > Från: > "Siva Kumar Tadi" <[EMAIL PROTECTED]> > Datum: > Fri, 14 Nov 2008 18:23:31 +0530 > Till: > "'[email protected]'" > <[email protected]> > > Till: > "'[email protected]'" > <[email protected]> > > > Hi, > > I created a new page using the method Document.newpage(). A new page > is created. How can I delete that empty page? > > > > Thank you. > > > > > > Regards, > > T V Siva Kumar > > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
