billy.halejr Posted October 10, 2017 Share Posted October 10, 2017 I can't get properties to export to PDF reports. The properties arer set in default.jasperreports.properties. I have java code that reads them and the properties are correct. I also have java code that sets thre properties I'm interested in setting but when the report is output, those properties are not present. I am trying to make the reports 508 compliant. I am exporting the report as follows:JasperReportsContext jasperReportsContext = DefaultJasperReportsContext.getInstance();JRPdfExporter exporter = new JRPdfExporter(jasperReportsContext);exporter.setExporterInput(new SimpleExporterInput(jasperPrint));exporter.setExporterOutput(new SimpleOutputStreamExporterOutput(outputStream));exporter.exportReport();Is there another way of exporting so that these properties are passed to the report? The properties I am wanting to pass to the report are:net.sf.jasperreports.export.pdf.metadata.title=VHIC (this gets passed)net.sf.jasperreports.export.pdf.display.metadata.title=true (not passed)net.sf.jasperreports.export.pdf.tagged=true (this gets passed)net.sf.jasperreports.export.pdf.tag.language=EN-US (not passed) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now