Fix documentation, instantiation example (#2564)

This commit is contained in:
JRK
2022-02-07 17:37:07 +01:00
committed by GitHub
parent d0965298d5
commit d0c9ea340e
+1 -1
View File
@@ -860,7 +860,7 @@ $writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Pdf')
Or you can instantiate directly the writer of your choice like so:
```php
$writer = \PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf($spreadsheet);
$writer = new \PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf($spreadsheet);
```
#### Custom implementation or configuration