Examples
Pick an example by where your PDF comes from and where the images go next.
Node.js and Bun
Convert files from disk or bytes from memory in a script or worker.
Next.js route handler
Accept an upload and return page images from an App Router route.
Next.js upload and preview
The route above plus a client page that shows every rendered page.
OCR and vision models
Pass pages to Tesseract.js or to a multimodal model with the AI SDK.