Skip to content

Commit

Permalink
docs: clean up and adjust documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasravnsborg committed Dec 3, 2017
1 parent f5aa1bf commit e03e7e3
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ function generate_pdf() {

It is also possible to use the following methods on the `pdf` object:

`output()`: Outputs the PDF as a string.
`save($filename)`: Save the PDF to a file
`download($filename)`: Make the PDF downloadable by the user
`stream($filename)`: Return a response with the PDF to show in the browser
`output()`: Outputs the PDF as a string.
`save($filename)`: Save the PDF to a file
`download($filename)`: Make the PDF downloadable by the user.
`stream($filename)`: Return a response with the PDF to show in the browser.

## Config

Expand All @@ -77,8 +77,7 @@ To override this configuration on a per-file basis use the fourth parameter of t

```php
PDF::loadView('pdf', $data, [], [
'title' => 'Another Title',
'margin_top' => 0
'format' => 'A5-L'
])->save($pdfFilePath);
```

Expand Down

0 comments on commit e03e7e3

Please sign in to comment.