PHPackages                             tecnickcom/tc-lib-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. tecnickcom/tc-lib-pdf-parser

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

tecnickcom/tc-lib-pdf-parser
============================

PHP library to parse PDF documents

3.13.1(1w ago)38126.9k↑212%191LGPL-3.0-or-laterPHPPHP &gt;=8.2CI passing

Since May 11Pushed 1w ago4 watchersCompare

[ Source](https://github.com/tecnickcom/tc-lib-pdf-parser)[ Packagist](https://packagist.org/packages/tecnickcom/tc-lib-pdf-parser)[ Docs](https://tcpdf.org)[ GitHub Sponsors](https://github.com/sponsors/tecnickcom)[ RSS](/packages/tecnickcom-tc-lib-pdf-parser/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (25)Versions (125)Used By (1)

tc-lib-pdf-parser
=================

[](#tc-lib-pdf-parser)

> Parser library for reading and extracting PDF document structures.

[![Latest Stable Version](https://camo.githubusercontent.com/dc4bc9bbaad617be8151cd27ce78778c85ca52cf4cf10ee4ffddc137ca3a201d/68747470733a2f2f706f7365722e707567782e6f72672f7465636e69636b636f6d2f74632d6c69622d7064662d7061727365722f76657273696f6e)](https://packagist.org/packages/tecnickcom/tc-lib-pdf-parser)[![Build](https://github.com/tecnickcom/tc-lib-pdf-parser/actions/workflows/check.yml/badge.svg)](https://github.com/tecnickcom/tc-lib-pdf-parser/actions/workflows/check.yml)[![Coverage](https://camo.githubusercontent.com/d58173b2f7f8fec641c93afc7ece4583287dcadef14807abc8834846256aac47/68747470733a2f2f636f6465636f762e696f2f67682f7465636e69636b636f6d2f74632d6c69622d7064662d7061727365722f67726170682f62616467652e7376673f746f6b656e3d53494759514a47384434)](https://codecov.io/gh/tecnickcom/tc-lib-pdf-parser)[![License](https://camo.githubusercontent.com/cfce4c4e266f320bb595e685ff0ce3ea09cad4f8b38b5b2c9cc43a4fc874b032/68747470733a2f2f706f7365722e707567782e6f72672f7465636e69636b636f6d2f74632d6c69622d7064662d7061727365722f6c6963656e7365)](https://packagist.org/packages/tecnickcom/tc-lib-pdf-parser)[![Downloads](https://camo.githubusercontent.com/c999530778414ea754fca2726406e59bf686511ce64783e7e40a924ea99ba4ad/68747470733a2f2f706f7365722e707567782e6f72672f7465636e69636b636f6d2f74632d6c69622d7064662d7061727365722f646f776e6c6f616473)](https://packagist.org/packages/tecnickcom/tc-lib-pdf-parser)

[![Sponsor on GitHub](https://camo.githubusercontent.com/dd89cb32d6e7ff9dbb0fa7ce84923567358b220feb9198b3720beabc3153da6a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73706f6e736f722d6769746875622d4541344141412e7376673f6c6f676f3d67697468756273706f6e736f7273266c6f676f436f6c6f723d7768697465)](https://github.com/sponsors/tecnickcom)

> 💖 Part of the [tc-lib-pdf / TCPDF](https://github.com/tecnickcom/tc-lib-pdf) ecosystem (100M+ installs). [Sponsor its maintenance →](https://github.com/sponsors/tecnickcom)

---

Overview
--------

[](#overview)

`tc-lib-pdf-parser` parses raw PDF data into structured PHP arrays suitable for extraction, analysis, and downstream processing.

The parser is designed for tooling scenarios such as content inspection, metadata extraction, validation, and migration pipelines. It favors clear structured output so applications can build higher-level analysis features without depending on fragile regular-expression parsing.

**Namespace**`\Com\Tecnick\Pdf\Parser`**Author**Nicola Asuni **License**[GNU LGPL v3](https://www.gnu.org/copyleft/lesser.html) - see [LICENSE](LICENSE)**API docs****Packagist**---

Features
--------

[](#features)

### Parsing Capabilities

[](#parsing-capabilities)

- Cross-reference and object stream parsing
- Filter-aware stream decoding integration
- Structured output suitable for custom extractors

### Runtime Design

[](#runtime-design)

- Configuration options for tolerant parsing modes
- Pure-PHP parser with no external service dependency
- Typed exceptions for error handling

---

Requirements
------------

[](#requirements)

- PHP 8.2 or later
- Extension: `pcre`
- Composer

---

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

[](#installation)

```
composer require tecnickcom/tc-lib-pdf-parser
```

---

Quick Start
-----------

[](#quick-start)

```
