8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e97a405 commit 2b6b388Copy full SHA for 2b6b388
src/System.php
@@ -62,11 +62,15 @@ public function printers(): array
62
})->toArray();
63
}
64
65
- public function print(string $html, ?Printer $printer = null): void
+ /**
66
+ * For settings options, see https://www.electronjs.org/docs/latest/api/web-contents#contentsprintoptions-callback
67
+ */
68
+ public function print(string $html, ?Printer $printer = null, array $settings = []): void
69
{
70
$this->client->post('system/print', [
71
'html' => $html,
72
'printer' => $printer->name ?? '',
73
+ 'settings' => $settings,
74
]);
75
76
0 commit comments