@SuppressWarnings("rawtypes") public Exporter setup() { exportConfiguration.setCompressed(Boolean.TRUE); return new JRPdfExporter(); }
SimplePdfExporterConfiguration exporterConfiguration = new SimplePdfExporterConfiguration(); if (jasperExporter.getCreatingBatchModeBookmarks() != null) { exporterConfiguration.setCreatingBatchModeBookmarks(jasperExporter.getCreatingBatchModeBookmarks()); exporterConfiguration.setCompressed(jasperExporter.getCompressed()); exporterConfiguration.setEncrypted(jasperExporter.getEncrypted()); exporterConfiguration.set128BitKey(jasperExporter.getBitKey128()); exporterConfiguration.setUserPassword(jasperExporter.getUserPassword()); exporterConfiguration.setOwnerPassword(jasperExporter.getOwnerPassword()); exporterConfiguration.setPermissions(ConstantTransform.pdfPermission(jasperExporter.getPermissions())); exporterConfiguration.setPdfVersion(ConstantTransform.pdfVersion(jasperExporter.getPdfVersion())); exporterConfiguration.setMetadataTitle(jasperExporter.getMetadataTitle()); exporterConfiguration.setMetadataAuthor(jasperExporter.getMetadataAuthor()); exporterConfiguration.setMetadataSubject(jasperExporter.getMetadataSubject()); exporterConfiguration.setMetadataKeywords(jasperExporter.getMetadataKeyWords()); exporterConfiguration.setMetadataCreator(jasperExporter.getMetadataCreator()); exporterConfiguration.setPdfJavaScript(jasperExporter.getPdfJavaScript());
exporter = new JRPdfExporter(); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(outputStream)); exporter.setConfiguration(new SimplePdfExporterConfiguration()); } else if (ReportOutputType.html == outputType) { exporter = new HtmlExporter();
exporter = new JRPdfExporter(); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(outputStream)); exporter.setConfiguration(new SimplePdfExporterConfiguration()); } else if (ReportOutputType.html == outputType) { exporter = new HtmlExporter();