Render a PDF from a saved template or raw HTML. Pass `template_id` to use a saved template, or `html` for one-off renders. Variables in `{{handlebars}}` syntax are replaced with values from `data`. Returns the PDF as binary data (`application/pdf`).
Errors: 400 `invalid_json` (the body is not a JSON object), `invalid_data` (`data` is not an object), `invalid_format` (a `format` margin, or custom width or height, that cannot be read), `template_syntax_error` and `template_runtime_error` (the message names the template, header, footer or block that failed); 413 `request_too_large` for a body over 10 MB, refused before it is read; 422 `render_timeout` when the render takes longer than 60 seconds. With `delivery: "url"`: 413 `render_too_large` for a PDF over the URL-delivery size (base64 delivery takes it), 507 `render_storage_full` with `Retry-After` when stored renders are at their limit, 500 `storage_failed`. A failed render or URL delivery is logged as a failure, with its template and duration; a bad body is not logged.