Skip to content

Instantly share code, notes, and snippets.

@andrerocker
Created November 7, 2010 19:10
Show Gist options
  • Save andrerocker/666331 to your computer and use it in GitHub Desktop.
Save andrerocker/666331 to your computer and use it in GitHub Desktop.
Varios JasperPrint em um unico PDF de saida.
public void exportReportToPdfStream(List<JasperPrint> prints, OutputStream output) throws JRException
{
JRPdfExporter exporter = new JRPdfExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT_LIST, prints);
exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, output);
exporter.exportReport();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment