I am using an api which allows me to generate reports in PDF format. From the api I get the PDF in a byte[]. I send the reports to users via e-mail. Sometimes users will get one report, but in many cases they’ll get many reports.
I’m wondering whether it’s possible to take the bytes for more than one pdf and combine them in some way with another (or many) report(s) so I only send the user one pdf rather than 3 or 4. Thanks for the help!
No, concatenating the bytestream will not work (read the standard ;-). You need to use something like Apache PDFBox to create a new PDF.