Export JasperReport to WEBP
Contents
[
Hide
]
Aspose.Imaging for JasperReports provides a class named ASWebPExporter for exporting JasperReport to WEBP.
The following code snippet demonstrates how to export the JasperReport to WEBP.
Java
ASWebPExporter webPExporter = new ASWebPExporter();
ASWebpExportConfigurationImpl webpExportConfiguration = new ASWebpExportConfigurationImpl();
webpExportConfiguration.setQuality(50);
webPExporter.setConfiguration(webpExportConfiguration);
exporterInput = new ASExportInputImpl(jasperPrint);
webPExporter.setExporterInput(exporterInput);
exporterOutput = new ASExporterOutputImpl("shapesExample.webp");
webPExporter.setExporterOutput(exporterOutput);
webPExporter.exportReport();