Skip to content

Commit 8ecb54e

Browse files
authored
Update README.md
1 parent 3bb68b1 commit 8ecb54e

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<p align="center"><img src="https://static.typeset.sh/images/typeset.sh-logo.svg" width="300"></p>
33

44

5-
# Typeset.sh wrapper for Laravel 7, 8, 9, 10 and 11
5+
# Typeset.sh wrapper for Laravel 7, 8, 9, 10, 11 and 12
66

77
This is a laravel typeset.sh wrapper that lets you easily configure and use typeset.sh
88
in your laravel project. Typeset.sh is a printcss layout and rendering engine written in PHP.
@@ -63,6 +63,19 @@ Route::get('/invoice/print', function () {
6363
});
6464
```
6565

66+
or assign a save handler.
67+
68+
```php
69+
use Typesetsh\HtmlToPdf\StandardEncryption;
70+
use Typesetsh\Pdf\Security\Encryption\Standard\Permission;
71+
72+
Route::get('/invoice/print', function () {
73+
$invoice = new stdClass();
74+
75+
return Typesetsh\pdf('invoice', ['invoice' => $invoice])
76+
->with(new StandardEncryption("owner123", "user123", Permission::FORMS));
77+
});
78+
```
6679

6780
## Configuration
6881

0 commit comments

Comments
 (0)