{"library":"unpdf","type":"library","category":null,"description":"unpdf is a modern, actively maintained PDF extraction and rendering library that runs across all JavaScript runtimes: Node.js, Deno, Bun, browsers, and serverless environments like Cloudflare Workers. Version 1.6.2 ships a serverless build of Mozilla's PDF.js v5.6.205, optimized for edge computing. It provides high-level APIs for extracting text, links, and images from PDF files, making it ideal for AI applications that require PDF summarization or analysis. Unlike older libraries like pdf-parse, unpdf supports ESM, TypeScript natively, and eliminates the need for external worker files in serverless contexts. It offers opt-in support for official or legacy PDF.js builds and includes a peer dependency on @napi-rs/canvas for rendering operations.","language":"javascript","status":"active","version":"1.6.2","tags":["javascript","cloudflare","edge","extract","parse","pdf","pdf.js","pdfjs-dist","rendering","typescript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install unpdf","imports":["import { extractText } from 'unpdf'","import { getDocumentProxy } from 'unpdf'","import { definePDFJSModule } from 'unpdf'","import { getResolvedPDFJS } from 'unpdf'"]},{"cmd":"yarn add unpdf","imports":[]},{"cmd":"pnpm add unpdf","imports":[]}],"homepage":"https://github.com/unjs/unpdf#readme","github":"https://github.com/unjs/unpdf","docs":null,"changelog":null,"pypi":null,"npm":"unpdf","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}