Remove local path from sample and add DomPDF in `composer.json` `require-dev`
This commit is contained in:
parent
3cb6d86e22
commit
20b363f00e
|
|
@ -37,7 +37,8 @@
|
|||
"ext-zip": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "3.7.*"
|
||||
"phpunit/phpunit": "3.7.*",
|
||||
"dompdf/dompdf" : "0.6.*"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-gd2": "*",
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ $writers = array('Word2007' => 'docx', 'ODText' => 'odt', 'RTF' => 'rtf', 'HTML'
|
|||
|
||||
// Set PDF renderer
|
||||
$rendererName = \PhpOffice\PhpWord\Settings::PDF_RENDERER_DOMPDF;
|
||||
$rendererLibraryPath = 'D:\www\local\minerva\dompdf'; // DomPDF library path
|
||||
$rendererLibraryPath = ''; // DomPDF library path
|
||||
|
||||
if (!\PhpOffice\PhpWord\Settings::setPdfRenderer($rendererName, $rendererLibraryPath)) {
|
||||
$writers['PDF'] = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue