finish implementation of Excel preview fallback

This commit is contained in:
Georg Ehrke 2013-06-12 11:40:01 +02:00
parent 67816da0bf
commit 228e084e65
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}