8000 Return base64 string from json-response · alnutile/nativephp_laravel@fd258f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit fd258f3

Browse files
authored
Return base64 string from json-response
1 parent b144aa6 commit fd258f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/System.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public function print(string $html, Printer $printer = null): void
5252

5353
public function printToPDF(string $html): string
5454
{
55-
$this->client->post('system/print-to-pdf', [
55+
return $this->client->post('system/print-to-pdf', [
5656
'html' => $html,
57-
]);
57+
])->json('result');
5858
}
5959
}

0 commit comments

Comments
 (0)
0