8000 Add settings · NativePHP/laravel@2b6b388 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2b6b388

Browse files
committed
Add settings
1 parent e97a405 commit 2b6b388

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/System.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,15 @@ public function printers(): array
6262
})->toArray();
6363
}
6464

65-
public function print(string $html, ?Printer $printer = null): void
65+
/**
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
6669
{
6770
$this->client->post('system/print', [
6871
'html' => $html,
6972
'printer' => $printer->name ?? '',
73+
'settings' => $settings,
7074
]);
7175
}
7276

0 commit comments

Comments
 (0)
0