Skip to content

Commit d0c9ea3

Browse files
authored
Fix documentation, instantiation example (#2564)
1 parent d096529 commit d0c9ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/topics/reading-and-writing-to-file.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ $writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Pdf')
860860
Or you can instantiate directly the writer of your choice like so:
861861

862862
```php
863-
$writer = \PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf($spreadsheet);
863+
$writer = new \PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf($spreadsheet);
864864
```
865865

866866
#### Custom implementation or configuration

0 commit comments

Comments
 (0)