PHPackages                             wrseward/pdf-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. wrseward/pdf-parser

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

wrseward/pdf-parser
===================

PHP library to parse text from PDF files

0.1.0(10y ago)185.6k5[2 issues](https://github.com/wrseward/pdf-parser/issues)[1 PRs](https://github.com/wrseward/pdf-parser/pulls)MITPHPPHP &gt;=5.3.3CI failing

Since Sep 1Pushed 6y ago3 watchersCompare

[ Source](https://github.com/wrseward/pdf-parser)[ Packagist](https://packagist.org/packages/wrseward/pdf-parser)[ Docs](https://github.com/wrseward/pdf-parser)[ RSS](/packages/wrseward-pdf-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (1)Used By (0)

wrseward/pdf-parser
===================

[](#wrsewardpdf-parser)

PHP library to parse PDF files to text. A wrapper for pdftotext.

[![Build Status](https://camo.githubusercontent.com/f5a7f6061dd6e92788abe9c494d2f74c65bb71fd926240ae79adb8d949bdae77/68747470733a2f2f7472617669732d63692e6f72672f77727365776172642f7064662d7061727365722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wrseward/pdf-parser)

Installation
------------

[](#installation)

Via Composer

```
composer require wrseward/pdf-parser
```

### `pdftotext` binary

[](#pdftotext-binary)

Debian / Ubuntu

```
apt-get install poppler-utils
```

RedHat / CentOS

```
yum install poppler-utils
```

OS X

```
brew install xpdf
```

Verify your installation / Get the path of the binary

```
which pdftotext
```

Usage
-----

[](#usage)

```
$parser = new \Wrseward\PdfParser\Pdf\PdfToTextParser('/usr/bin/pdftotext');
$parser->parse('/path/to/file.pdf');
echo $parser->text();
```

Running tests
-------------

[](#running-tests)

```
./vendor/bin/phpspec run
```

License
-------

[](#license)

[MIT](https://github.com/wrseward/pdf-parser/blob/master/LICENSE)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3913d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/acdb26dbc0307baa7a1545bcbf1bb84ce845d51ffc94b2d3b1e93311f1f651ed?d=identicon)[wrseward](/maintainers/wrseward)

---

Top Contributors

[![wrseward](https://avatars.githubusercontent.com/u/1389211?v=4)](https://github.com/wrseward "wrseward (3 commits)")[![bhoffman-cbl](https://avatars.githubusercontent.com/u/11428250?v=4)](https://github.com/bhoffman-cbl "bhoffman-cbl (1 commits)")

---

Tags

pdfparserpdftotextpdf-parser

### Embed Badge

![Health badge](/badges/wrseward-pdf-parser/health.svg)

```
[![Health](https://phpackages.com/badges/wrseward-pdf-parser/health.svg)](https://phpackages.com/packages/wrseward-pdf-parser)
```

###  Alternatives

[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)[tecnickcom/tc-lib-pdf-parser

PHP library to parse PDF documents

4092.8k](/packages/tecnickcom-tc-lib-pdf-parser)[padam87/rasterize-bundle

HTML to PDF Symfony bundle. Works with Puppeteer, PhantomJS, and more.

1579.4k](/packages/padam87-rasterize-bundle)[kaleu62/pi-reader

A Simple PDF and Image parser

1128.5k](/packages/kaleu62-pi-reader)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
