JasperReport를 JPEG2000으로 내보내기
Contents
[
Hide
]Aspose.CAD for JasperReports는 JasperReport를 JPEG2000으로 내보내기 위한 ASJpeg2000Exporter라는 클래스를 제공합니다.
다음 코드 스니펫은 JasperReport를 JPEG2000으로 내보내는 방법을 보여줍니다.
Java
ASJpeg2000Exporter jpeg2000Exporter = new ASJpeg2000Exporter();
ASJpeg2000ExportConfigurationImpl jpeg2000ExportConfiguration = new ASJpeg2000ExportConfigurationImpl();
jpeg2000ExportConfiguration.setIrreversible(true);
jpeg2000ExportConfiguration.setCodec(Jpeg2000CodecEnum.J2K);
jpeg2000Exporter.setConfiguration(jpeg2000ExportConfiguration);
exporterInput = new ASExportInputImpl(jasperPrint);
jpeg2000Exporter.setExporterInput(exporterInput);
exporterOutput = new ASExporterOutputImpl("shapesExample.jp2");
jpeg2000Exporter.setExporterOutput(exporterOutput);
jpeg2000Exporter.exportReport();