# Install pdf2json with npm

PDF file parser that converts PDF binaries to JSON and text, powered by porting a fork of PDF.JS to Node.js. Version 4.0.3 via npm; verified 2026-04-16.

## Install

```sh
sudo av install npm:pdf2json
```

Additional install commands:

### Portable and language managers

- npm (100%):

```sh
npm install -g pdf2json
```

  Evidence: local npm package metadata

## Package facts

- **Package key:** npm:pdf2json
- **Package manager:** npm
- **Package manager page:** <https://www.npmjs.com/package/pdf2json>
- **Version:** 4.0.3
- **Source summary:** PDF file parser that converts PDF binaries to JSON and text, powered by porting a fork of PDF.JS to Node.js
- **Homepage:** <https://github.com/modesty/pdf2json>
- **Repository:** <https://github.com/modesty/pdf2json>
- **Upstream docs:** <https://github.com/modesty/pdf2json>
- **License:** Apache-2.0
- **Source archive:** <https://registry.npmjs.org/pdf2json/-/pdf2json-4.0.3.tgz>
- **Issue tracker:** <http://github.com/modesty/pdf2json/issues>
- **Published:** 2026-04-16T01:48:54.289Z
- **Last updated:** 2026-04-16T01:48:54.289Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- pdf2json (cli)

## Build dependencies

- @eslint/js
- @rollup/plugin-commonjs
- @rollup/plugin-eslint
- @rollup/plugin-json
- @rollup/plugin-node-resolve
- @rollup/plugin-terser
- @rollup/plugin-typescript
- @types/node
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- eslint
- jest
- rollup
- tslib
- typescript

## Install behavior

- Post-install hook: not defined
- Bottle: not available

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 4.0.3
- Package-manager updated: 2026-04-16
- Local data: ok
- Upstream repository: https://github.com/modesty/pdf2json
- info: No cached GitHub release or tag data was available.

## Security Notes

No matching local secret-handling manifest was found for pdf2json. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** npm registry
- **Dist Tags:** Latest: 4.0.3
- **Version Count:** 116
- **Maintainers:** modesty
- **Author:** Modesty Zhang
- **Publisher:** modesty
- **Engines:** Node: >=20.18.0
- **Integrity:** sha512-QErPemxRHDI2RUli3+9/mv4V6Ib9VWI+UoP2S82yXEQtoXzWvu9NSjjo3vyiUiVJv+CJFuzNiKUI+UFFUdv8Lg==
- **Shasum:** ccb3c93d7864193d2b4e2ce9b9f763cb51922a53
- **Unpacked Size:** 8,203,596
- **File Count:** 0
- **Created At:** 2012-11-09T19:39:19.287Z
- **Latest Published At:** 2026-04-16T01:48:54.289Z
- **Modified At:** 2026-04-16T01:48:54.405Z

## Other Package-Manager Records

- MacPorts - pdf2json: normalized package name match | MacPorts ports tree: textproc/pdf2json/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched curated package taxonomy and local package facts.
- [pdf2json](https://www.automicvault.com/pkg/brew/pdf2json/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, json, pdf, pdf2json.
- [pdf-visual-diff](https://www.automicvault.com/pkg/npm/pdf-visual-diff/) - Both packages touch the same language runtime or ecosystem. Shared terms: canvas, cli, data, document, document-processing.
- [pdf-text-extract](https://www.automicvault.com/pkg/npm/pdf-text-extract/) - Both packages work with overlapping file formats or content types. Shared terms: cli, data, document, document-processing, pdf.
- [pdf2json](https://www.automicvault.com/pkg/brew/pdf2json/) - Same normalized package name exists in another local package ecosystem.

## Sources

- Nucleus package database
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
