Franck Bollaro wrote:
> Thanks to the example ReorderPages.java I have reorder my document but still
> have a problem :
> - my log trace are ok : totalPages = reorder.length  and the new order is ok
> - but I have the exception : "Page reordering requires an array with the same
> size as the number of pages."
> 
> I have put writer.setLinearPageMode(); before document.open;

Hmm, that's the problem when using the book samples
without reading the book. Page 431 says: "Calling newPage()
before reordering the pages is important! This method is
responsible for initializing a new page, but it also does
some finalization operations on the previous page."
In other words: I think you have forgotten to call
newPage before invoking reorderPages()
Of course I can only guess...
br,
Bruno

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to