Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] Reorder existing Document

Bruno

2007-07-16

Replies:

Hubert Zwick wrote:
> Hello!
>
> How can i reorder a existing Document?
> The way "stamper.getWriter().reorderPages(order);" don't work!

Of course not, that's for newly created documents.

> is there a way to reorder a existing document?

I'd use PdfReader, selectPages() and PdfStamper.
There's an example in the iText toolbox,
and selectPages() is explained in chapter 2 of the book.
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
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.