Skip to content

Commit 563623e

Browse files
authored
Merge pull request #24 from rozenlicht/master
Added way to directly get binary of PDF
2 parents 96c103c + cc41f35 commit 563623e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Api2PdfResult.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ public function getFile()
6969
return $this->file;
7070
}
7171

72+
/**
73+
* @return string|null
74+
*/
75+
public function getFileContents()
76+
{
77+
return $this->file ? file_get_contents($this->file) : null;
78+
}
79+
7280
public function getJson()
7381
{
7482
return $this->raw_json;

0 commit comments

Comments
 (0)