Fail to auto convert odt to pdf

When i set " MAIN_ODT_AS_PDF " in " Other setup " , and set value to " libreoffice " in debian host .
It will show the error as below .

But if i copy the command to host to execute , it will work fine to convert the odt file .

The dolibarr version is 16.0.4 . Do i missing something ?

Hello,

I encountered the same issue but managed to resolve it by changing the owner of the ‘odtaspdf’ folder from root to www-data. To do this on your machine, locate the folder and then execute the following command in the prompt:
chown -R www-data /var/lib/dolibarr/documents/temp/odtaspdf
image

That’s it

Hi

Thanks for your reply , i have tried that and work fine .