Skip to main content
Use the official HookPDF Node.js SDK to render PDFs from your templates, poll job status, and handle API errors with typed exceptions.

Install

Requires Node.js 18 or later.

Initialize client

CommonJS

ES modules

Quick start

Preview render

Use renderPreview() when you want a watermarked PDF for testing without consuming credits.

Next steps