srag / jasperreport
This is an ILIAS wrapper for the JasperReport library. It allows ILIAS to print pretty PDF reports.
Installs: 47
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 7
Forks: 3
pkg:composer/srag/jasperreport
Requires
- php: >=5.6
- rdpascua/jasperstarter: ^3.3.0
- setasign/fpdi: ^2.0.3
- srag/dic: >=0.1.0
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
Dependencies
- PHP >=5.6
- composer
- rdpascua/jasperstarter
- setasign/fpdi
- srag/dic
Please use it for further development!
Adjustment suggestions
- Adjustment suggestions by pull requests
- Adjustment suggestions which are not yet worked out in detail by Jira tasks under https://jira.studer-raimann.ch/projects/LJASPER
- Bug reports under https://jira.studer-raimann.ch/projects/LJASPER
- For external users you can report it at https://plugins.studer-raimann.ch/goto.php?target=uihk_srsu_LJASPER