File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 16
16
17
17
// Set PDF renderer
18
18
$ rendererName = \PhpOffice \PhpWord \Settings::PDF_RENDERER_DOMPDF ;
19
- $ rendererLibraryPath = "" ; // Put dompdf library path
19
+ $ rendererLibraryPath = '' ; // DomPDF library path
20
+
20
21
if (!\PhpOffice \PhpWord \Settings::setPdfRenderer ($ rendererName , $ rendererLibraryPath )) {
21
22
$ writers ['PDF ' ] = null ;
22
23
}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ class PDF
21
21
/**
22
22
* The wrapper for the requested PDF rendering engine
23
23
*
24
- * @var \PhpOffice\PhpWord\Writer\PDF\Core
24
+ * @var \PhpOffice\PhpWord\Writer\PDF\AbstractRenderer
25
25
*/
26
26
private $ renderer = null ;
27
27
Original file line number Diff line number Diff line change 9
9
10
10
namespace PhpOffice \PhpWord \Writer \PDF ;
11
11
12
+ use PhpOffice \PhpWord \Exception \Exception ;
12
13
use PhpOffice \PhpWord \PhpWord ;
13
- use PhpOffice \PhpWord \PhpWord \Exception \Exception ;
14
14
15
15
/**
16
- * Core PDF Writer
16
+ * Abstract PDF renderer
17
17
*/
18
- abstract class Core extends \PhpOffice \PhpWord \Writer \HTML
18
+ abstract class AbstractRenderer extends \PhpOffice \PhpWord \Writer \HTML
19
19
{
20
20
/**
21
21
* Temporary storage directory
Original file line number Diff line number Diff line change 11
11
12
12
use PhpOffice \PhpWord \PhpWord ;
13
13
use PhpOffice \PhpWord \Settings ;
14
- use PhpOffice \PhpWord \PhpWord \ Exception \Exception ;
14
+ use PhpOffice \PhpWord \Exception \Exception ;
15
15
16
16
/** Require DomPDF library */
17
17
$ pdfRendererClassFile = Settings::getPdfRendererPath () . '/dompdf_config.inc.php ' ;
24
24
/**
25
25
* DomPDF writer
26
26
*/
27
- class DomPDF extends Core implements \PhpOffice \PhpWord \Writer \WriterInterface
27
+ class DomPDF extends AbstractRenderer implements \PhpOffice \PhpWord \Writer \WriterInterface
28
28
{
29
29
/**
30
30
* Create new instance
You can’t perform that action at this time.
0 commit comments