I'm trying to convert HTML file into RTF file using unoconv
in php.
From php I'm calling :
......
file_put_contents("/tmp/unoconv55b2862fea753.html", $content);
$command = "unoconv -f rtf -o /tmp/unoconv55b2862fea753.rtf /tmp/unoconv55b2862fea753.html";
exec($command, $output);
$converted = file_get_contents("/tmp/unoconv55b2862fea753.rtf");
the problem is, that file_put content
will save .html, but unoconv for some reason doesn't save converted file into /tmp directory.
When I run that $command directly on server in console, converted file was created.
Do you have any idea where could be problem?