Hi,
Yes you are right, it was stupid to use the PdfCopyFields. It's a stupid
idea that I had. I used, as you said, the PdfCopy class and the merging is
okay.
For the pagination, I saw that it's no possible by the PdfCopy. Is there an
way to do it ? Hack the stream after ? Or recreate a reader and put
pagination ?
Thank you,
Pierre-Nicolas
2010/9/16 1T3XT info <[email protected]>
> On 16/09/2010 15:19, Pierre-Nicolas Lemoine wrote:
> > Hi all,
> >
> > I'm using iText to merge different PDF documents. The documents have
> > different page orientation: portrait or landscape.
> > I did my implementation based on this example :
> > http://java-x.blogspot.com/2006/11/merge-pdf-files-with-itext.html.
>
> You should read official documentation.
> Read chapter 6 of the second edition of "iText in Action."
>
> > The pages in landscape orientation are turned to the portrait
> > orientation (the text too). I wanted to keep this landscape orientation.
>
> And you probably want to keep your annotations,
> because now you're throwing them all away, aren't you?
> Or are you using the code from the comments?
>
> > For now, I used the PdfCopyFields but I cannot use pagination.
>
> Now you get me confused: why are you using PdfCopyFields?
> Are you merging forms?
>
> > Is anyone has a solution about this problem ?
>
> Use PdfCopy!
> Save time and read chapter 6 of the new book.
> http://itextpdf.com/book/
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.itextpdf.com/book/
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/