This repository was archived by the owner on Apr 14, 2024. It is now read-only.
This repository was archived by the owner on Apr 14, 2024. It is now read-only.
How to increase waitTimeout? #26
Open
Description
Hi there
I am trying to convert a rather "large" html file (lots of small images) into a PDF.
Could anybody point out how I could increase the waitTimeout?
{"message":"'waitTimeout' should be \u003c '30.000000', got '60.000000'"}
Currently I am useing this code:
$opts=array(
"ssl"=>array(
"verify_peer"=>false,
"verify_peer_name"=>false,
),
);
$resource = fopen($url, 'r', false, stream_context_create($opts));
$stream = new Stream($resource);
$client = new Client('http://gotenberg:3000');
$index = DocumentFactory::makeFromStream($filename, $stream);
$request = new HTMLRequest($index);
$request->setPaperSize(Request::A4);
$request->setMargins(Request::NO_MARGINS);
$request->setScale(1);
$request->setWaitTimeout(60);
```
BR wucherpfennig
Metadata
Metadata
Assignees
Labels
No labels