Fix documentation, instantiation example (#2564)
This commit is contained in:
parent
d0965298d5
commit
d0c9ea340e
|
|
@ -860,7 +860,7 @@ $writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Pdf')
|
||||||
Or you can instantiate directly the writer of your choice like so:
|
Or you can instantiate directly the writer of your choice like so:
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$writer = \PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf($spreadsheet);
|
$writer = new \PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf($spreadsheet);
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Custom implementation or configuration
|
#### Custom implementation or configuration
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue