Skip to content

Commit 5e1331b

Browse files
authored
Added way to directly get binary of PDF
1 parent e18ed0b commit 5e1331b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Api2Pdf.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,14 @@ public function getFile()
434434
{
435435
return $this->file;
436436
}
437+
438+
/**
439+
* @return string|null
440+
*/
441+
public function getFileContents()
442+
{
443+
return $this->file ? file_get_contents($this->file) : null;
444+
}
437445

438446
public function getJson()
439447
{

0 commit comments

Comments
 (0)