Jump to content
Changes to the Jaspersoft community edition download ×

Properties from code not passed to PDF export


billy.halejr

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...