What is the best way to concatenate several pdf files into one
document considering that I am getting pdf documents from a database:
Blob report = resultSet2.getBlob( PdfDocument );
Then I get binary stream and read it to an output. Below are the
details. I read in the book how one could
Solved this problem - here is the key code.
byte[] byteBuffer = output.toByteArray();
PdfReader reader = new PdfReader( byteBuffer );
//add all pages to one document
for ( int page = 1; page = reader.getNumberOfPages(); page++ )
{