Skip to content
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
@wucherpfennig

Description

@wucherpfennig

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions