We recommend using asynchronous requests for better performance on your
application.
Request
Response
200 OK once the PDF has been generated. The response body will contain a signedUrl key which is a temporary URL pointing to the generated PDF file on our S3 bucket. If you passed a custom s3_bucket, it’ll be stored there instead. This URL will expire after 1 hour.
If your PDF takes more than 30 seconds to render, it will automatically be added to an asynchronous queue and you’ll receive a 202 Accepted response with a requestId. You can check the status using the Get PDF Status endpoint.
PDF Render Metadata
We’ll also bring some additional metadata from your PDF render with every response:- executionTime - Time in seconds it took to generate your PDF
- fileSize - PDF size in kiloBytes
Parameters
The id of your PDF template
The object containing the variables from your PDF template
If true, will return a .PNG file instead of a .PDF file (default: false)
This object containing the metadata for your PDF. See all the options
here.
The id of the active s3 connection you want to store your generated file on.
(only available in the high plan)
The path, including subdirectories and the filename without extension, to use
when saving the render in your S3 bucket. (only available if being stored in
custom s3_bucket)
If you’re using our embedded white-label solution, you can pass the UUID of
your customer to generate the PDF of the customized template
If true, will hide the footer and the header elements on the first page of the
generated PDF. (default: false)
If true, will enter Debug Mode and show additional properties on the response
to help you figure out your variables and html rendered content. Here’s
everything you need to know about Debug
Mode. (default: false)