private function reportOpenOfficeConverter() { $converter = new Converter(); $converter->configure(ContentType::pdf(), $this->tempDirectory); try { $bin = $converter->convert(file_get_contents(__DIR__ . '/../../../../test/data/test.odt')); } catch (OpenOfficeException $e) { return 'ERROR: Plugin openoffice cannot convert document.'; } return strval(ContentType::pdf()) === strval(ContentType::byString($bin)) ? null : 'ERROR: Plugin openoffice converts to wrong content type.'; }
private function converter() { $converter = new Converter(); return $converter->configure(ContentType::pdf(), $this->tempDir); }