I have 2 PDF files.
I read both files as byte arrays, file1
and file2
, and concatenate then to a third array file3
.
When I write this third array to the file system, the created file size is the sum of file1
and file2
, but it shows only the content of file1
.
Here is how I write the array to the file system:
try (FileOutputStream stream = new FileOutputStream(path)) {
stream.write(file3);
}
How can i see all pages of merged file ?