Skip to content

Commit 20b363f

Browse files
committed
Remove local path from sample and add DomPDF in composer.json require-dev
1 parent 3cb6d86 commit 20b363f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"ext-zip": "*"
3838
},
3939
"require-dev": {
40-
"phpunit/phpunit": "3.7.*"
40+
"phpunit/phpunit": "3.7.*",
41+
"dompdf/dompdf" : "0.6.*"
4142
},
4243
"suggest": {
4344
"ext-gd2": "*",

samples/Sample_Header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
// Set PDF renderer
1818
$rendererName = \PhpOffice\PhpWord\Settings::PDF_RENDERER_DOMPDF;
19-
$rendererLibraryPath = 'D:\www\local\minerva\dompdf'; // DomPDF library path
19+
$rendererLibraryPath = ''; // DomPDF library path
2020

2121
if (!\PhpOffice\PhpWord\Settings::setPdfRenderer($rendererName, $rendererLibraryPath)) {
2222
$writers['PDF'] = null;

0 commit comments

Comments
 (0)