From e03e7e312146b2779e40000381332883d614a1ba Mon Sep 17 00:00:00 2001 From: Niklas Ravnsborg-Gjertsen Date: Sun, 3 Dec 2017 17:43:04 +0100 Subject: [PATCH] docs: clean up and adjust documentation --- readme.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/readme.md b/readme.md index 2727b41..7c80726 100644 --- a/readme.md +++ b/readme.md @@ -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 @@ -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); ```