Create a PDF using html or via URL
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
When set to true, the request will not consume any credits/coins from the account, but the generated PDF will include a watermark. When set to false or omitted, credits will be consumed and no watermark will be applied.
The HTML source to convert to PDF. Can be a raw HTML string or a URL.
Compliance flags for special data handling
If true, JavaScript execution is disabled during PDF rendering. Useful for static rendering or when security concerns require blocking scripts.
Output filename. Must only contain letters, numbers, underscores, hyphens, or dots, and must end with .pdf.
Page format. Accepted values: letter, legal, tabloid, ledger, a0-a6, or custom size in the format {width}x{height} (e.g., 800pxx600px, 21cmx29.7cm).
Page margins. Each property accepts a string with a unit (px, cm, mm, in).
Page range to include in the output PDF (e.g., "1-3", "2,4,6").
If provided, a POST request will be sent to this URL when PDF generation is complete.
Scaling factor for the rendering engine. Values greater than 1 zoom in; less than 1 zoom out.