diff --git a/src/PhpSpreadsheet/Writer/PDF.php b/src/PhpSpreadsheet/Writer/PDF.php index 261bf5a3..6b9e6328 100644 --- a/src/PhpSpreadsheet/Writer/PDF.php +++ b/src/PhpSpreadsheet/Writer/PDF.php @@ -48,7 +48,7 @@ class PDF implements IWriter } $pdfLibraryPath = \PhpOffice\PhpSpreadsheet\Settings::getPdfRendererPath(); - if (is_null($pdfLibraryName)) { + if (is_null($pdfLibraryPath)) { throw new Exception('PDF Rendering library path has not been defined.'); } $includePath = str_replace('\\', '/', get_include_path());