Closed richso closed 2 years ago
You can set the PDF producer property programmatically like this:
DefaultJasperReportsContext.getInstance().setProperty(JRPdfExporter.PDF_PRODUCER_FACTORY_PROPERTY,
"com.jaspersoft.jasperreports.export.pdf.modern.ModernPdfProducerFactory");
You can also use ModernPdfProducerFactory.class.getName()
as property value if you don't mind a compile dependency.
When using with Jasperreport Library programmatically, how can we change the default PDF producer to this alternative producer?
i.e. com.jaspersoft.jasperreports.export.pdf.modern.ModernPdfProducerFactory