How to Configure PhantomJS and RequireJS in JasperReports Server
How to Configure PhantomJS and RequireJS in to the JasperReports Server
If you are using JasperReports Server V7.1, to download reports in PDF format, you must need to configure the PhantomJS and RequireJS in to the 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