[EMAIL PROTECTED] wrote:
> I create TOC(Table Of Contents) in PDF.
> I create TOC at the end of the document, and
> I reorder it.

OK

> But reordered PDF has empty last page.

Normally newPage doesn't create a new page
if the page is empty (unless you decide otherwise,
or if you add something in an onStartPage event).

> I consulted ReorderPages.java.

The example from the book?
I've tested all the book samples.
It should work; please inform me if it doesn't.

> I thought Document#newPage() before PdfWriter#reorderPages() wasn't necessary.
> But That will report an error.

newPage() is necessary!
br,
Bruno

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to