/** * Tell PHPExcel where to find the external library to use for rendering PDF files * * @param string $libraryBaseDir Directory path to the library's base folder * @return boolean Success or failure */ public static function setPdfRendererPath($libraryBaseDir) { if (file_exists($libraryBaseDir) === false || is_readable($libraryBaseDir) === false) { return false; } self::$pdfRendererPath = $libraryBaseDir; return true; }