Skip to content

Instantly share code, notes, and snippets.

Last active February 28, 2016 12:59
What would you like to do?
Merge multiple jasper prints
List<JasperPrint> jasperPrints = loadReports();
ByteArrayOutputStream out = new ByteArrayOutputStream();
JRPdfExporter exporter = new JRPdfExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT_LIST, jasperPrints);
exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, out);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment