Fix odttopdf generation
This commit is contained in:
parent
23c0a30263
commit
0de06b7ef4
@ -821,7 +821,10 @@ IMG;
|
|||||||
if ($conf->global->MAIN_ODT_AS_PDF == 'libreoffice')
|
if ($conf->global->MAIN_ODT_AS_PDF == 'libreoffice')
|
||||||
{
|
{
|
||||||
dol_mkdir($conf->user->dir_temp); // We must be sure the directory exists and is writable
|
dol_mkdir($conf->user->dir_temp); // We must be sure the directory exists and is writable
|
||||||
dol_mkdir($conf->user->dir_temp.'/odtaspdf'); // We create a subdir because the soffice change pemrissions on it
|
|
||||||
|
// We delete and recreate a subdir because the soffice may have change pemrissions on it
|
||||||
|
dol_delete_dir_recursive($conf->user->dir_temp.'/odtaspdf');
|
||||||
|
dol_mkdir($conf->user->dir_temp.'/odtaspdf');
|
||||||
|
|
||||||
// Install prerequisites: apt install soffice libreoffice-common libreoffice-writer
|
// Install prerequisites: apt install soffice libreoffice-common libreoffice-writer
|
||||||
// using windows libreoffice that must be in path
|
// using windows libreoffice that must be in path
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user