Skip to content

Commit

Permalink
Merge pull request #104 from basst85/main
Browse files Browse the repository at this point in the history
Add printToPDF function
  • Loading branch information
mpociot authored Sep 21, 2023
2 parents 31c9110 + fd258f3 commit ff17c33
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,11 @@ public function print(string $html, Printer $printer = null): void
'printer' => $printer->name ?? '',
]);
}

public function printToPDF(string $html): string
{
return $this->client->post('system/print-to-pdf', [
'html' => $html,
])->json('result');
}
}

0 comments on commit ff17c33

Please sign in to comment.