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