Examples and patterns
Choose the right integration pattern for Node.js, Next.js, and downstream image workflows.
Use this page as an index to the most common ways teams integrate the library.
Node.js recipes
File-path conversion, in-memory buffers, and selected-page usage.
Next.js route handlers
The smallest correct server-side pattern for App Router APIs.
Next.js upload + preview
Add a client upload form, call a route handler, and render every page image.
Downstream integrations
Pass rendered page images into OCR, AI SDK image prompts, or other consumers.