Also check Library Path
LibraryName was being checked twice.
This commit is contained in:
parent
6d44884e19
commit
3b4f54722f
|
@ -48,7 +48,7 @@ class PDF implements IWriter
|
||||||
}
|
}
|
||||||
|
|
||||||
$pdfLibraryPath = \PhpOffice\PhpSpreadsheet\Settings::getPdfRendererPath();
|
$pdfLibraryPath = \PhpOffice\PhpSpreadsheet\Settings::getPdfRendererPath();
|
||||||
if (is_null($pdfLibraryName)) {
|
if (is_null($pdfLibraryPath)) {
|
||||||
throw new Exception('PDF Rendering library path has not been defined.');
|
throw new Exception('PDF Rendering library path has not been defined.');
|
||||||
}
|
}
|
||||||
$includePath = str_replace('\\', '/', get_include_path());
|
$includePath = str_replace('\\', '/', get_include_path());
|
||||||
|
|
Loading…
Reference in New Issue