{"repo":"unjs/unpdf","free":true,"listed":false,"github":"https://github.com/unjs/unpdf","clone":"git clone https://github.com/unjs/unpdf.git","description":"📄 PDF extraction and rendering across all JavaScript runtimes","language":"TypeScript","stars":1212,"topics":["pdf","pdfjs","serverless"],"license":"MIT","category":"media-processing","readme_excerpt":"unpdf Utilities for PDF extraction and rendering across all JavaScript runtimes – Node.js, Deno, Bun, the browser, and serverless environments like Cloudflare Workers. Especially useful for AI applications that need to summarize or analyze PDF documents. Ships with a serverless build of Mozilla's PDF.js, optimized for edge environments. If you're coming from pdf-parse , unpdf is a modern, actively maintained alternative with broader runtime support. Features - 🏗️ Works in Node.js, browser and serverless environments - 🪭 Includes serverless build of PDF.js ( unpdf/pdfjs ) - 💬 Extract text, links, and images from PDF files - 🧠 Perfect for AI applications and PDF summarization - 🧱 Opt-in to official or legacy PDF.js build Installation Usage Extract Text From PDF Official or Legacy PDF.js Build Usually you don't need to worry about the PDF.js build. unpdf ships with a serverless build of the latest PDF.js version. However, if you want to use the official PDF.js version or the legacy build, you can define a custom PDF.js module. [!WARNING] PDF.js v5.x uses Promise.withResolvers , which may not be supported in all environments, such as Node [!NOTE] If no other PDF.js build was defined, the serverless build will always be used. For example, you can use the getDocument method to load a PDF file and then use the getMetadata method to get the metadata of the PDF file: How It Works [!NOTE] The serverless PDF.js bundle is built from PDF.js v5.6.205. Heart and soul of this package is","default_branch":null,"files":null,"tree":[],"storefront":"/r/unjs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/unjs/unpdf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}