Generates a PDF document from raw HTML content and/or a URL. If both are provided, the HTML content will be injected into the page at the specified URL.
This endpoint allows you to generate a PDF document directly from HTML content, without needing to publish a template first.
For generating documents from published templates, see the Generate Document endpoint instead.
API key or authentication token
Generated document in requested format
Binary PDF file (when format=pdf)