}
}
private ByteArrayOutputStream concatenateDocs(byte[] originalDoc, Person person) throws IOException, DocumentException {
ByteArrayOutputStream concatenatedPdf = new ByteArrayOutputStream();
PdfCopyFields copy = new PdfCopyFields(concatenatedPdf);
try {
copy.addDocument(new PdfReader(createAcademicAdminProcessSheet(person)));
} catch (Exception e) {
logger.error(e.getMessage(), e);
}
copy.addDocument(new PdfReader(originalDoc));
for (PdfFiller pdfFiller : pdfFillersSet) {
copy.addDocument(new PdfReader(pdfFiller.getFilledPdf(person).toByteArray()));
}
copy.close();
return concatenatedPdf;
}