|
@@ -49,8 +49,7 @@ class InvoiceController( |
|
|
val pdf: Map<String, Any> = invoiceService.exportPDF(req) |
|
|
val pdf: Map<String, Any> = invoiceService.exportPDF(req) |
|
|
|
|
|
|
|
|
val jasperPrint: JasperPrint = pdf["report"] as JasperPrint |
|
|
val jasperPrint: JasperPrint = pdf["report"] as JasperPrint |
|
|
response.setHeader("Content-Disposition", "attachment; filename=\"${pdf["fileName"]}.pdf\"") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
response.addHeader("Content-Disposition", "attachment; filename=\"${pdf["fileName"]}.pdf\"") |
|
|
|
|
|
|
|
|
try { |
|
|
try { |
|
|
out.write(JasperExportManager.exportReportToPdf(jasperPrint)) |
|
|
out.write(JasperExportManager.exportReportToPdf(jasperPrint)) |
|
|