Skip to content

Commit 5d28403

Browse files
committed
update readme
1 parent 818f23b commit 5d28403

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ Which result to a URL like so: https://laratt.niiknow.org/api/v1/democontact/exa
348348
349349
And the server-side source for the export is simply: https://github.com/niiknow/laratt-api/blob/876ce385fc64d83b564f2e697790465675741634/api/Controllers/DemoContactController.php#L90
350350
351+
As far as PDF export, you will need to handle this yourself. Tip, use [laravel-snappy](https://github.com/barryvdh/laravel-snappy). The basic concept is to render your result to some html/blade template and use laravel-snappy to convert HTML to PDF.
352+
351353
**Export Tip**
352354
Outside of csv export, most modern OS and Browser support PDF printing. As a result, simply instruct the user to Print your page and use printing CSS to manipulate for exporting of PDF.
353355

0 commit comments

Comments
 (0)