PHPackages                             carrooi/pdf-extractor - 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. carrooi/pdf-extractor

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

carrooi/pdf-extractor
=====================

PDF text extractor

1.0.0(11y ago)198911MITPHP

Since Feb 12Pushed 11y ago1 watchersCompare

[ Source](https://github.com/Carrooi/PHP-PdfExtractor)[ Packagist](https://packagist.org/packages/carrooi/pdf-extractor)[ RSS](/packages/carrooi-pdf-extractor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (1)

Carrooi/PdfExtractor
====================

[](#carrooipdfextractor)

[![Build Status](https://camo.githubusercontent.com/803a666f65cd917197c3a6daea3384ce44311f11e0606b17c39426613a6f4e68/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f436172726f6f692f5048502d506466457874726163746f722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Carrooi/PHP-PdfExtractor)[![Donate](https://camo.githubusercontent.com/7f8b0c0980ad316210d1ec0c7d3298ace87d2f7c0eb6911977c0644951af5bd2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d50617950616c2d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=97TWD4XVL4F64)

PDF text extractor.

Depends on pdftotext library.

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

[](#installation)

```
$ composer require carrooi/pdf-extractor
$ composer update

```

Usage
-----

[](#usage)

```
use Carrooi\PdfExtractor\PdfExtractor;

$extractor = new PdfExtractor;

$text = $extractor->extractText('/path/to/file.pdf');
```

Options
-------

[](#options)

### -layout

[](#-layout)

```
$extractor->preserveLayout(true);
```

Changelog
---------

[](#changelog)

- 1.0.0
    - Initial version

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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

4114d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/838c6933d498fdb2a31f251ed45006a6ef97935ea2a27f38dab7738038939fc9?d=identicon)[david\_kudera](/maintainers/david_kudera)

---

Top Contributors

[![davidkudera](https://avatars.githubusercontent.com/u/1174072?v=4)](https://github.com/davidkudera "davidkudera (8 commits)")

---

Tags

pdftextextractextractorcarrooi

### Embed Badge

![Health badge](/badges/carrooi-pdf-extractor/health.svg)

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

###  Alternatives

[smalot/pdfparser

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

2.7k34.5M216](/packages/smalot-pdfparser)[kartik-v/yii2-export

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)

1623.1M35](/packages/kartik-v-yii2-export)[aspose-cloud/aspose-words-cloud

Open, generate, edit, split, merge, compare and convert Word documents. Integrate Cloud API into your solutions to manipulate documents. Convert PDF to Word (DOC, DOCX, ODT, RTF and HTML) and in the opposite direction.

32157.4k](/packages/aspose-cloud-aspose-words-cloud)[nilgems/laravel-textract

A Laravel package to extract text from files like DOC, XL, Image, Pdf and more. I've developed this package by inspiring "npm textract".

195.2k](/packages/nilgems-laravel-textract)

PHPackages © 2026

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