ByteArrayOutputStream object has a
toByteArray() method that returns a
PdfReader class has a constructor that takes a byte as parameter. Once you have a
PdfReader instance of both files, you can use these instances with
PdfSmartCopy to merge the files. Use the Concatenate example for inspiration.