srag/jasperreport

This package is abandoned and no longer maintained. No replacement package was suggested.

This is an ILIAS wrapper for the JasperReport library. It allows ILIAS to print pretty PDF reports.

v2.0.21 2019-02-22 12:58 UTC

This package is auto-updated.

Last update: 2023-12-08 11:35:13 UTC


README

This is an ILIAS wrapper for the JasperReport library. It allows ILIAS to print pretty PDF reports.

Dependencies:

  • Java 8 or higher must be installed. It must be accessible by the webservice user under /usr/bin/java. You can change this in the class.JasperReport.php file on Line 189.
  • For older Java versions or for non Composer version, use the follow commit: https://github.com/studer-raimann/JasperReport/commit/dc9476fcad0f8e4955ea9300581d9f6dc04ab6d6
  • Make sure that the webservice user has assigned a shell (e.g. at your own risk: $ sudo chsh -s '/bin/sh' www-data). Otherwise all PDF generation responses will come back empty.

Usage

Composer

First add the following to your composer.json file:

"require": {
  "srag/jasperreport": ">=0.1.0"
},

And run a composer install.

If you deliver your plugin, the plugin has it's own copy of this library and the user doesn't need to install the library.

You can now remove the global installed Customizing/global/libraries/JasperReport on productive usages

Tip: Because of multiple autoloaders of plugins, it could be, that different versions of this library exists and suddenly your plugin use an older or a newer version of an other plugin!

So I recommand to use srag/librariesnamespacechanger

Generate Jasper xml template files

iReport Designer

Dependencies

Please use it for further development!

Adjustment suggestions