1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 08:21:34 +02:00

Phantom adjustment for preview

This commit is contained in:
David Bomba 2020-11-27 13:31:21 +11:00
parent b5840f8e45
commit e410a99f91

View File

@ -91,7 +91,7 @@ class Phantom
$key = config('ninja.phantomjs_key');
$phantom_url = "https://phantomjscloud.com/api/browser/v2/{$key}/?request=%7Bcontent:%22{$html}%22,renderType:%22pdf%22%7D";
$pdf = CurlUtils::get($phantom_url);
info($pdf);
$response = Response::make($pdf, 200);
$response->header('Content-Type', 'application/pdf');