finish implementation of Excel preview fallback
This commit is contained in:
parent
67816da0bf
commit
228e084e65
|
@ -65,7 +65,7 @@ class MSOfficeExcel extends Provider {
|
|||
$tmppath = \OC_Helper::tmpFile();
|
||||
|
||||
$rendererName = \PHPExcel_Settings::PDF_RENDERER_DOMPDF;
|
||||
$rendererLibraryPath = \OC::$THIRDPARTYROOT . '/dompdf';
|
||||
$rendererLibraryPath = \OC::$THIRDPARTYROOT . '/3rdparty/dompdf';
|
||||
|
||||
\PHPExcel_Settings::setPdfRenderer($rendererName, $rendererLibraryPath);
|
||||
|
||||
|
@ -79,6 +79,8 @@ class MSOfficeExcel extends Provider {
|
|||
unlink($abspath);
|
||||
unlink($tmppath);
|
||||
|
||||
$image = new \OC_Image($pdf);
|
||||
|
||||
return $image->valid() ? $image : false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue