How to Configure Chromium JS Engine to Download Reports in PDF Format - JasperReports Server V 8.0.2
If you are using JasperReports Server V8.0.2, to download/export reports in PDF format, you must need to configure the Chromium JavaScript engine into the JasperReports Server.
Specify the chrome.path configuration property in the location for Chromium JavaScript engine to support the Chromium configuration.
Example Path: chrome.path = C:\\Program Files(x86)\\Google\\Chrome\\Application\\chrome.exe
For information about configuring Chromium in JasperReports Server, see the TIBCO JasperReports Server Administrator Guide > Configuring a JavaScript Engine for Graphical Report Rendering section.
How to Configure PhantomJS and RequireJS to Download Reports in PDF Format - JasperReports Server V 7.1
If you are using JasperReports Server V7.1, to download reports in PDF format, you must need to configure the PhantomJS and RequireJS in tothe JasperReports Server.
- Download version of PhantomJS and RequireJS script files in to the Jasper Installation location.
- Download PhantomJS from http://phantomjs.org/download. (phantomjs-2.1.1)
- Download RequireJS from https://requirejs.org/docs/download.html (require.js 2.3.6)
- Navigate to the
<Jasper Installation Location>\apache-tomcat\webapps\jasperserver-pro\WEB-INF\classes
and open thejasperreports.properties
file. - In the
jasperreports.properties
, do the following:- replace the
%%PHANTOMJS_PATH%
with the phantomjs path - replace the
%%REQUIREJS_PATH%
with the requirejs path
- replace the