Steve Cole wrote:
> You need to do something like this...
>  
> PdfCopyFields pdfCopyFields = new PdfCopyFields(new 
> FileOutputStream("my_document.pdf"));
>  
> PdfReader reader = new PdfReader(myByteArrayOutputStream1.toByteArray());
> pdfCopyFields.addDocument(reader);   
>  
> reader = new PdfReader(myByteArrayOutputStream2.toByteArray());
> pdfCopyFields.addDocument(reader);   
>  
> pdfCopyFields.close();  

That's correct but only useful if both PDF files have form fields.
Otherwise PdfCopy or PdfSmartCopy will do the trick too.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to