Skip to content

Commit ff17c33

Browse files
authored
Merge pull request #104 from basst85/main
Add printToPDF function
2 parents 31c9110 + fd258f3 commit ff17c33

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/System.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,11 @@ public function print(string $html, Printer $printer = null): void
4949
'printer' => $printer->name ?? '',
5050
]);
5151
}
52+
53+
public function printToPDF(string $html): string
54+
{
55+
return $this->client->post('system/print-to-pdf', [
56+
'html' => $html,
57+
])->json('result');
58+
}
5259
}

0 commit comments

Comments
 (0)