Extension using unoconv to convert reports to the OpenoOffice/LibreOffice supported formats
npm i @jsreport/jsreport-unoconv
apt-get install unoconv
npm i @jsreport/jsreport-unoconv
{
"extensions": {
"unoconv": {
"command": "python [unoconvScriptPath]"
}
}
}
The LibreOffice doesn't support parallel run of the requests. The workaround is to use a global lock on unoconv
{
"extensions": {
"unoconv": {
"command": "/usr/bin/timeout 30 flock -w 20 lockfile /usr/bin/unoconv"
}
}
}
This workaround was originally described on forum.
{
"extensions": {
"unoconv": {
"command": "custom unoconv command"
}
}
}