Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

How to increase waitTimeout? #26

Open
wucherpfennig opened this issue May 6, 2021 · 0 comments
Open

How to increase waitTimeout? #26

wucherpfennig opened this issue May 6, 2021 · 0 comments

Comments

@wucherpfennig
Copy link

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant