setConvertTo($format_destination) ->setOutputDir($destination) ->execute(); } catch (\Exception $e) { spip_log($e->getMessage(), 'odtspip.' . _LOG_ERREUR); return false; } if ($libreoffice->getErrors()) { return false; } return $libreoffice->getConvertedFile(); }