curlcommand line tool. This example uses an external file -
body.json- which contains the API parameters as JSON-formatted data.
curlto make a request using form data from the command line:
wait_network. This option controls how many seconds of network inactivity is required before the PDF is captured.
wait_network_timevalue must be a number between 0 and 20.
wait_networkis set but this option is not)
wait_timevalue must be a number between 0 and 20.
wait_timeoption which gives you finer control over exactly when the PDF starts generating. You might find this useful if you have a single-page app or a page with a lot of dynamic content.
wait_css_selectorto any valid CSS selector - for example:
body > .container
[id].pdf- for example
/to separate directory names - for example
passwordis set, you must also provide a
creation_failedstatus) if the HTTP response from the URL is in the 400 or 500 range. For example, 401, 404 etc.
widthvalues within the
curlto set a custom page size:
mm) or inches (
in). If you don't specify a unit, inches are assumed. For example, these are all valid heights or widths:
12(interpreted as 12 inches)