Marta Figueiredo wrote:
> Hello,
> 
> I'm using PdfCopy to merge the contents of two PDF, but I need the merge 
> output to be an array of bytes - ByteArrayOutputStream. Does anyone know 
> how to perform this?

You are asking a question you have already answered yourself!

You say you are using PdfCopy to merge the contents of two PDFs.
If that is true, you are using the following constructor:
PdfCopy(Document document, OutputStream os);
http://1t3xt.info/api/com/lowagie/text/pdf/PdfCopy.html#PdfCopy(com.lowagie.text.Document,%20java.io.OutputStream)

Then you are asking how to make sure the output is an OutputStream,
more specifically a ByteArrayOutputStream.

We can only assume this was a rhetorical question.
-- 
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