PDF-файл создается с помощью клиента gotenberg-pdf (в веб-приложении Laravel), взаимодействующего с API на том же сервере (localhost:3000). Я хотел бы передать аргумент waitForExpression, как указано в документации Gotenberg. Однако в документации php-клиента не упоминается, как передать этот аргумент от php-клиента в API. Как мы можем этого добиться?
$html = view('someview')->render();
$request = Gotenberg::chromium("http://localhost:3000")
->pdf()
->html(Stream::string('index.php', $html))
$filename = Gotenberg::save($request, storage_path());
$headers = array('Content-Type: application/pdf',);
return Response::download(storage_path($filename), 'output.pdf', $headers);
Подробнее здесь: https://stackoverflow.com/questions/798 ... enberg-php