Beispiel #1
0
 /**
  * Create new instance
  *
  * @param PhpWord $phpWord PhpWord object
  */
 public function __construct(PhpWord $phpWord)
 {
     parent::__construct($phpWord);
     $configFile = Settings::getPdfRendererPath() . '/dompdf_config.inc.php';
     if (file_exists($configFile)) {
         require_once $configFile;
     } else {
         throw new Exception('Unable to load PDF Rendering library');
     }
 }