Client constructor
new HookPDF(apiKey, options?)
Create a new SDK client.
Methods
client.render(params)
Queue a production PDF render job.
client.renderPreview(params)
Queue a preview render job. The generated PDF is watermarked and short-lived.
client.getReport(jobId)
Get the current status for a render job.
client.waitForReport(jobId, options?)
Poll the API until the job completes or fails.
Error handling
SDK methods throwHookPDFError for API and transport failures.