Hi,
I just encountred a problem with docx to pdf libreoffice conversion.
Everything works fine, when only one File is converted by LibreOffice at the same time.
But if you start a second conversion, while an other conversion is running, libreoffice will fail without warnings or errors. This problem will occur, when the conversion process is started with phpdocx in php or directly via command line: soffice --invisible --convert-to pdf test.docx
phpdoxc will then throw a rename(..., ...)No such file or directory Exception
In the end I found out that the problem can be solved by creating a separate config file for each export.
Like this:
$docx->transformDocument("test.docx",
"test.pdf",
null,
array('homeFolder' => '/home/testUser/libreOfficeConfig/'. Str::random())
(Str::random() just generates a 16 characters long random String)
Now I would be intrested if you already know this problem, because I coudnĀ“t find anything about it, in the commen problems section: https://www.phpdocx.com/documentation/conversion-plugin/common-problems-and-possible-errors. There is only mentioned, that LibreOffice needs permissions to read and write in the .config directory.
I think I could not be the first one, who has this problem?
And is that a possible way to solve the problem? Or does maybe a more robust solution exist?
Greetings
Michael