# modesty/pdf2json

converts binary PDF to JSON and text, for server-side PDF processing and command-line use. Zero dependency.

Repository: https://github.com/modesty/pdf2json
Canonical: https://ross.abutalabs.com/products/pdf2json
Homepage: https://github.com/modesty/pdf2json
Language: Java
License: NOASSERTION
License Family: other
Topics: json, pdf, pdf-converter, pdf-form, pdf-text, pdf2json, pdf2text, pdf2form
Last push: 2026-04-16T01:51:47+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 77, release rhythm 67, longevity 100
- inputs: {"age_days": 5045, "days_push": 140, "days_rel": 140, "gap_med": 56.0, "n_releases_24m": 9}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2210, forks 393 (observed 2026-08-28T04:06:26.317601+00:00)

## What it is
A Node.js module that converts binary PDF files into structured JSON and text, built on top of Mozilla's pdf.js. It extracts text content and interactive AcroForm fields, and can be used as a library, a RESTful web service, or a standalone command-line tool.

## Use cases
- extract text from pdf files to json
- parse pdf form fields programmatically
- convert pdfs to text on a server
- command line pdf to json converter
- process pdf documents in node.js
- extract acroform data from pdfs

## When to choose
- you need server-side or CLI PDF text and form-field extraction in Node.js
- you want a zero-dependency, pure JavaScript PDF parser
- you need structured JSON output rather than raw text dumps

## When to avoid
- you need to create or edit PDFs rather than parse them
- you need OCR for scanned image-only PDFs
- you work outside the Node.js/JavaScript ecosystem

## Facets
- artifact type: library
- maturity: active
- function: pdf, parser, cli, developer-tools
- domain: pdf, files, developer-tools
- platform: cli, cross-platform
- tags: pdf-to-json, pdf-text-extraction, acroform, zero-dependency, pdf-form-fields, command-line, nodejs

## Member repositories
- modesty/pdf2json (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:26.317601+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:46:11.245030+00:00, confidence not recorded.
  - readme: https://github.com/modesty/pdf2json (fetched 2026-08-28T04:06:26.317601+00:00, sha 8e0f4b1f7da8)
  - homepage: https://github.com/modesty/pdf2json (fetched 2026-08-29T10:26:30.226723+00:00, sha 858648b9f5e9)
- Data as of 2026-08-30T08:39:29.467469+00:00.
