# pdf2json — card for AI agents

Converts PDF files to JSON and text in Node.js.

Category: Files, images and media · npm package `pdf2json` · latest version 4.1.0 (checked 2026-11-01)
Install: `npm install pdf2json`
License: Apache-2.0 (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 45.9 (#2447 of all tools, 158 of 281 in its category)
- Used in 3 public projects set up for AI coding agents (0.0%)
- Downloads last week: 657,437 (as of 2026-11-24), +41.4% over 4 weeks
- GitHub stars: 2,217 (as of 2026-11-24)
- Last push: 2026-11-21

## Often used with
AI SDK 46.4%, Zod 67.9%, Next.js 57.1%, pdf-parse 42.9%, OpenAI 42.9%, TypeScript 96.4%

## Checked alternatives (same job)
- pdf-parse: https://agentgid.com/tools/pdf-parse/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/pdf2json/
- Homepage: https://github.com/modesty/pdf2json
- Repository: https://github.com/modesty/pdf2json

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
