java - How to optimize the size of a pdf generated with JasperExportManager and JRFileVirtualizer -
i generate pdf in java method:
... jrfilevirtualizer virtualizer = new jrfilevirtualizer(2, stemppath); virtualizer.setreadonly(false); map.put(jrparameter.report_virtualizer, virtualizer); map.put(jrparameter.report_locale, locale.italian); jasperprint print = jasperfillmanager.fillreport(report, map, conn.getconnection()); jasperexportmanager.exportreporttopdffile(print, reportnamesaveto); ...
now have optimize size setting "compression" pdf, how can that?
you can set net.sf.jasperreports.export.pdf.compressed=true in jasperreports.properties, or equivalent in code.
Comments
Post a Comment