PHPackages                             jrmc/pdfinfo - 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. jrmc/pdfinfo

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

jrmc/pdfinfo
============

simple php wrapper for pdfinfo

v1.4.0(5y ago)06.4k↓50%1[1 PRs](https://github.com/JeResilieMonContrat-com/pdfinfo/pulls)MITPHP

Since Mar 20Pushed 1y ago3 watchersCompare

[ Source](https://github.com/JeResilieMonContrat-com/pdfinfo)[ Packagist](https://packagist.org/packages/jrmc/pdfinfo)[ RSS](/packages/jrmc-pdfinfo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (14)Used By (0)

Simple PHP wrapper to the pdfinfo unix tool.

Inspired by

What is pdfinfo
===============

[](#what-is-pdfinfo)

pdfinfo is an unix tool helping extract information from pdf files.

[http://linuxcommand.org/man\_pages/pdfinfo1.html](http://linuxcommand.org/man_pages/pdfinfo1.html)

You can get page count, title, author..etc via the tool.

Installation
============

[](#installation)

1. Install pdfinfo
------------------

[](#1-install-pdfinfo)

First you need to have pdfinfo in your system.

For ubuntu, there's an easy way for doing this:

```
sudo apt-get install poppler-utils

```

2. Install the library
----------------------

[](#2-install-the-library)

You can just download the file to your project, or install it via composer:

```
composer require "howtomakeaturn/pdfinfo:1.*"

```

Usage
=====

[](#usage)

Just pass the path to the pdf file to the constructor, and you can get metadata from its properties immediately:

```
$pdf = new PDFInfo('path/to/the/pdf');
echo $pdf->title; // Get the title
echo $pdf->pages; // Get the number of pages
```

Exceptions
==========

[](#exceptions)

This library throws 4 kind of exceptions to represent the official exit codes.

- OpenPDFException
- OpenOutputException
- PDFPermissionException
- OtherException

Check the [official documentation](http://linuxcommand.org/man_pages/pdfinfo1.html) for more information.

Reference
=========

[](#reference)

Currently this library supports the following metadata:

- title
- author
- creator
- producer
- creationDate
- modDate
- tagged
- form
- pages
- encrypted
- pageSize
- fileSize
- optimized
- PDFVersion
- pageRot

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

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

Every ~194 days

Recently: every ~397 days

Total

11

Last Release

2134d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8950eda6bb0981edeca55c94296d3028f698cf3e275c5233ca920ca79038c0f5?d=identicon)[jrmc](/maintainers/jrmc)

---

Top Contributors

[![howtomakeaturn](https://avatars.githubusercontent.com/u/1255050?v=4)](https://github.com/howtomakeaturn "howtomakeaturn (30 commits)")[![vluzrmos](https://avatars.githubusercontent.com/u/450848?v=4)](https://github.com/vluzrmos "vluzrmos (3 commits)")[![mhor](https://avatars.githubusercontent.com/u/4103719?v=4)](https://github.com/mhor "mhor (2 commits)")[![Arakmar](https://avatars.githubusercontent.com/u/1221938?v=4)](https://github.com/Arakmar "Arakmar (1 commits)")[![Nenillo](https://avatars.githubusercontent.com/u/355259?v=4)](https://github.com/Nenillo "Nenillo (1 commits)")[![SidRoberts](https://avatars.githubusercontent.com/u/1364214?v=4)](https://github.com/SidRoberts "SidRoberts (1 commits)")[![matthieumota](https://avatars.githubusercontent.com/u/2427947?v=4)](https://github.com/matthieumota "matthieumota (1 commits)")

---

Tags

pdfpdfinfo

### Embed Badge

![Health badge](/badges/jrmc-pdfinfo/health.svg)

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

###  Alternatives

[knplabs/knp-snappy

PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage.

4.5k68.3M56](/packages/knplabs-knp-snappy)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M102](/packages/spatie-browsershot)[chrome-php/chrome

Instrument headless chrome/chromium instances from PHP

2.6k4.5M64](/packages/chrome-php-chrome)[howtomakeaturn/pdfinfo

simple php wrapper for pdfinfo

68526.4k2](/packages/howtomakeaturn-pdfinfo)[pontedilana/php-weasyprint

PHP library allowing PDF generation from an url or a html page. Wrapper for Kozea/WeasyPrint.

761.1M7](/packages/pontedilana-php-weasyprint)[mostafaznv/pdf-optimizer

PDF optimization tool for PHP and Laravel applications

170125.8k](/packages/mostafaznv-pdf-optimizer)

PHPackages © 2026

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