Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
noogen committed May 11, 2019
1 parent 818f23b commit 5d28403
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ Which result to a URL like so: https://laratt.niiknow.org/api/v1/democontact/exa
And the server-side source for the export is simply: https://github.com/niiknow/laratt-api/blob/876ce385fc64d83b564f2e697790465675741634/api/Controllers/DemoContactController.php#L90
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.
**Export Tip**
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.
Expand Down

0 comments on commit 5d28403

Please sign in to comment.