# smalot/pdfparser

PdfParser, a standalone PHP library, provides various tools to extract data from a PDF file.

Repository: https://github.com/smalot/pdfparser
Canonical: https://ross.abutalabs.com/products/pdfparser
Language: PHP
License: LGPL-3.0
License Family: copyleft
Last push: 2026-05-26T06:55:52+00:00

## Health v2 (maintenance only)
Score: 82/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 84, release rhythm 68, longevity 100
- inputs: {"age_days": 4751, "days_push": 99, "days_rel": 134, "gap_med": 62, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2724, forks 579 (observed 2026-08-28T04:07:15.712795+00:00)

## What it is
A standalone PHP library for parsing PDF files and extracting data such as text, metadata, and page content. It supports compressed PDFs and various text encodings, installed via Composer.

## Use cases
- extract text from pdf files in php
- parse pdf metadata like author and description
- read pdf content page by page
- index pdf documents for search
- convert pdf documents to plain text

## When to choose
- you need a pure-PHP PDF text extractor with no external binaries
- you want to pull metadata and ordered page text from PDFs
- your project is PHP 7.1+ and uses Composer

## When to avoid
- you need to extract form data or parse secured/encrypted PDFs
- you need active feature development or guaranteed PR turnaround
- you need PDF generation or rendering, not parsing

## Facets
- artifact type: library
- maturity: maintenance
- function: parser, pdf, nlp
- domain: pdf, files
- platform: php, cross-platform
- tags: pdf-text-extraction, metadata-extraction, composer-package, standalone-library, natural-language-processing

## Member repositories
- smalot/pdfparser (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:15.712795+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:14:55.841323+00:00, confidence not recorded.
  - readme: https://github.com/smalot/pdfparser (fetched 2026-08-28T04:07:15.712795+00:00, sha 6f173b51b873)
- Data as of 2026-08-30T08:39:29.467469+00:00.
