Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * 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;
 }