- All Implemented Interfaces:
Exporter
@Component
public class PdfExporter
extends Object
implements Exporter
PDF exporter.
-
Constructor Summary
Constructors
-
Method Summary
boolean
Exporter for type parameter.
byte[]
generate(net.sf.jasperreports.engine.JasperPrint print)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PdfExporter
public PdfExporter()
-
Method Details
-
forType
Description copied from interface: Exporter
Exporter for type parameter.
- Specified by:
forType in interface Exporter
- Parameters:
type - Report type
- Returns:
- if the exporter is for the type parameter
-
generate
public byte[] generate(net.sf.jasperreports.engine.JasperPrint print)
throws net.sf.jasperreports.engine.JRException
Description copied from interface: Exporter
Generate report.
- Specified by:
generate in interface Exporter
- Parameters:
print - Jasper to print
- Returns:
- The report in byte array format
- Throws:
net.sf.jasperreports.engine.JRException - Exception in report generation