spatie/pdf-to-text
Extract text from a pdf observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 85
- Release rhythm 26
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 201.0
- age_days: 3898
- days_rel: 282
- days_push: 92
- n_releases_24m: 3
Adoption not part of the score
1029 stars · 132 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP library that wraps the pdftotext binary to extract plain text from PDF files with a simple, fluent API. It requires the poppler-utils pdftotext executable to be installed on the system.
Use cases
- extract text from pdf files in php
- parse pdf content into plain text
- convert pdf documents to text
- read text from pdfs in a laravel app
- index pdf documents for search
- pull text out of pdf invoices
When to choose
- you need simple text extraction from PDFs in PHP
- you can install system binaries like poppler-utils
- you want a minimal, well-maintained wrapper around pdftotext
When to avoid
- you cannot install system-level binaries on your host
- you need layout, image, or table extraction rather than plain text
- you need OCR for scanned PDFs without a text layer
Facets
library · maturity stable
pdf parser ocr pdf files developer-tools php windows cli pdftotext-wrapper text-extraction poppler spatie linux macos
3 sources
- readme: https://github.com/spatie/pdf-to-text · fetched 2026-08-28 · 04dd4a5388d3
- homepage: https://freek.dev/348-a-package-to-extract-text-from-a-pdf · fetched 2026-08-29 · f4255c1afe6e
- site_page: https://freek.dev/about · fetched 2026-08-29 · e0ef9dccbb05
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spatie/pdf-to-text | main | 67 |
For agents
markdown · JSON · MCP: product_card(name="spatie/pdf-to-text")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem