PHPackages                             lyhiving/pdfparser - 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. lyhiving/pdfparser

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

lyhiving/pdfparser
==================

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

v2.0.2(4y ago)013LGPL-3.0PHPPHP &gt;=7.1

Since Sep 2Pushed 4y agoCompare

[ Source](https://github.com/lyhiving/pdfparser)[ Packagist](https://packagist.org/packages/lyhiving/pdfparser)[ Docs](https://www.pdfparser.org)[ RSS](/packages/lyhiving-pdfparser/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (54)Used By (0)

PdfParser
=========

[](#pdfparser)

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

[![CI](https://github.com/smalot/pdfparser/workflows/CI/badge.svg)](https://github.com/smalot/pdfparser/workflows/CI/badge.svg)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/628256d04d1178773663462fc834ddd1f012267c8fb2975be1fc229865336cf0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736d616c6f742f7064667061727365722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/smalot/pdfparser/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/749c366122a4a5025b90103251497640a2bb19fa5ab0946aa44dab08154793c9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f736d616c6f742f7064667061727365722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/smalot/pdfparser/?branch=master)[![License](https://camo.githubusercontent.com/4b522b04e00f547b3917585a4671bf624c9f99375f0edc8e739f291f8ed9a3dd/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f7064667061727365722f6c6963656e7365)](//packagist.org/packages/smalot/pdfparser)

[![Latest Stable Version](https://camo.githubusercontent.com/e889215cf3210cab9e1c48f50b9b0c2ccbf12a390efcbded7d8f8e01d867114d/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f7064667061727365722f76)](//packagist.org/packages/smalot/pdfparser)[![Total Downloads](https://camo.githubusercontent.com/10fc7335b816956046fc2f16ba8bad1dcec958064c42f68010ad3568c260f61c/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f7064667061727365722f646f776e6c6f616473)](//packagist.org/packages/smalot/pdfparser)[![Monthly Downloads](https://camo.githubusercontent.com/44970ad512356ccbf578eebc222e141a72a3c6889399ca7a06880d1869616df5/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f7064667061727365722f642f6d6f6e74686c79)](//packagist.org/packages/smalot/pdfparser)[![Daily Downloads](https://camo.githubusercontent.com/c74900b9dbf382c4018ec7d9afbfd737dde37799a692f38320b30b958f90674b/68747470733a2f2f706f7365722e707567782e6f72672f736d616c6f742f7064667061727365722f642f6461696c79)](//packagist.org/packages/smalot/pdfparser)

Website : [https://www.pdfparser.org](https://www.pdfparser.org/?utm_source=GitHub&utm_medium=website&utm_campaign=GitHub)

Test the API on our [demo page](https://www.pdfparser.org/demo).

This project is supported by [Actualys](http://www.actualys.com).

Features
--------

[](#features)

Features included :

- Load/parse objects and headers
- Extract meta data (author, description, ...)
- Extract text from ordered pages
- Support of compressed pdf
- Support of MAC OS Roman charset encoding
- Handling of hexa and octal encoding in text sections
- PSR-0 compliant ([autoloader](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md))
- PSR-1 compliant ([code styling](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md))

Currently, secured documents are not supported.

**This Library is under active maintenance.**There is no active development by the author of this library (at the moment), but we welcome any pull request adding/extending functionality!

Documentation
-------------

[](#documentation)

[Read the documentation on website](http://www.pdfparser.org/documentation?utm_source=GitHub&utm_medium=documentation&utm_campaign=GitHub).

Original PDF References files can be downloaded from this url: [http://www.adobe.com/devnet/pdf/pdf\_reference\_archive.html](http://www.adobe.com/devnet/pdf/pdf_reference_archive.html)

**For developers**: Please read [DEVELOPER.md](DEVELOPER.md) for more information about local development of the PDFParser library.

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

[](#installation)

### Using Composer

[](#using-composer)

- Obtain [Composer](https://getcomposer.org)
- Run `composer require smalot/pdfparser`

### Use alternate file loader

[](#use-alternate-file-loader)

In case you can't use Composer, you can include `alt_autoload.php-dist` into your project. It will load all required files at once. Afterwards you can use `PDFParser` class and others.

License
-------

[](#license)

This library is under the [LGPLv3 license](https://github.com/smalot/pdfparser/blob/master/LICENSE.txt).

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~59 days

Recently: every ~52 days

Total

52

Last Release

1659d ago

Major Versions

v0.19.0 → v1.0.02021-04-26

v1.1.0 → v2.0.12021-12-16

PHP version history (4 changes)v0.9.3PHP &gt;=5.3.0

v0.15.1PHP ^5.6|^7.0

v0.16.0PHP &gt;=5.6

v1.0.0PHP &gt;=7.1

### Community

Maintainers

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

---

Top Contributors

[![smalot](https://avatars.githubusercontent.com/u/1424035?v=4)](https://github.com/smalot "smalot (113 commits)")[![k00ni](https://avatars.githubusercontent.com/u/381727?v=4)](https://github.com/k00ni "k00ni (47 commits)")[![j0k3r](https://avatars.githubusercontent.com/u/62333?v=4)](https://github.com/j0k3r "j0k3r (26 commits)")[![Connum](https://avatars.githubusercontent.com/u/13076806?v=4)](https://github.com/Connum "Connum (11 commits)")[![izabala](https://avatars.githubusercontent.com/u/8550103?v=4)](https://github.com/izabala "izabala (10 commits)")[![sparx82](https://avatars.githubusercontent.com/u/17567952?v=4)](https://github.com/sparx82 "sparx82 (4 commits)")[![klausi](https://avatars.githubusercontent.com/u/213229?v=4)](https://github.com/klausi "klausi (4 commits)")[![lyhiving](https://avatars.githubusercontent.com/u/70043?v=4)](https://github.com/lyhiving "lyhiving (3 commits)")[![doganoo](https://avatars.githubusercontent.com/u/6998611?v=4)](https://github.com/doganoo "doganoo (3 commits)")[![LucianoHanna](https://avatars.githubusercontent.com/u/22209724?v=4)](https://github.com/LucianoHanna "LucianoHanna (3 commits)")[![black-silence](https://avatars.githubusercontent.com/u/1191421?v=4)](https://github.com/black-silence "black-silence (3 commits)")[![fbourigault](https://avatars.githubusercontent.com/u/1116116?v=4)](https://github.com/fbourigault "fbourigault (3 commits)")[![cherny-sh](https://avatars.githubusercontent.com/u/184812?v=4)](https://github.com/cherny-sh "cherny-sh (2 commits)")[![mplx](https://avatars.githubusercontent.com/u/1986588?v=4)](https://github.com/mplx "mplx (2 commits)")[![PaulBehrendtVentoro](https://avatars.githubusercontent.com/u/11387517?v=4)](https://github.com/PaulBehrendtVentoro "PaulBehrendtVentoro (2 commits)")[![rodnaph](https://avatars.githubusercontent.com/u/447579?v=4)](https://github.com/rodnaph "rodnaph (2 commits)")[![theboolean](https://avatars.githubusercontent.com/u/1123102?v=4)](https://github.com/theboolean "theboolean (2 commits)")[![xelan](https://avatars.githubusercontent.com/u/5080535?v=4)](https://github.com/xelan "xelan (1 commits)")[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")[![DavidPrevot](https://avatars.githubusercontent.com/u/3936728?v=4)](https://github.com/DavidPrevot "DavidPrevot (1 commits)")

---

Tags

pdfparsertextparseextract

### Embed Badge

![Health badge](/badges/lyhiving-pdfparser/health.svg)

```
[![Health](https://phpackages.com/badges/lyhiving-pdfparser/health.svg)](https://phpackages.com/packages/lyhiving-pdfparser)
```

###  Alternatives

[smalot/pdfparser

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

2.7k40.5M268](/packages/smalot-pdfparser)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k38.9k](/packages/matomo-matomo)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[kartik-v/yii2-export

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

1693.3M36](/packages/kartik-v-yii2-export)[flow-php/parquet

PHP ETL - library for reading and writing Parquet files

58233.7k15](/packages/flow-php-parquet)

PHPackages © 2026

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