Conditions | 1 |
Paths | 1 |
Total Lines | 28 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
66 | $this->pdf->stream($filename, ['Attachment' => false]); |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * Download the PDF using the clients browser. |
||
71 | * |
||
72 | * @param string $filename |
||
73 | */ |
||
74 | public function download(string $filename = 'output.pdf') |
||
75 | { |
||
76 | $this->pdf->stream($filename, ['Attachment' => true]); |
||
77 | } |
||
78 | |||
79 | /** |
||
80 | * Retrieve the PDF's output. |
||
81 | * |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getOutput(): string |
||
85 | { |
||
86 | return $this->output; |
||
87 | } |
||
88 | |||
89 | /** |
||
90 | * Retrieve the PDF's AWS S3 path. |
||
91 | * |
||
92 | * @return string|null |
||
93 | */ |
||
94 | public function getPath(): ?string |
||
109 |