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

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

howtomakeaturn/pdfinfo
======================

simple php wrapper for pdfinfo

1.1.6(2y ago)68543.7k↓44.9%24[2 issues](https://github.com/howtomakeaturn/pdfinfo/issues)2MITPHP

Since Mar 20Pushed 2y ago3 watchersCompare

[ Source](https://github.com/howtomakeaturn/pdfinfo)[ Packagist](https://packagist.org/packages/howtomakeaturn/pdfinfo)[ RSS](/packages/howtomakeaturn-pdfinfo/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (1)Versions (11)Used By (2)

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

44

—

FairBetter than 90% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity51

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 76.2% 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 ~370 days

Recently: every ~746 days

Total

10

Last Release

788d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/794a27b329aeea74a342351a16b6f91673cc2239b9f4f9ba07172483fffed965?d=identicon)[howtomakeaturn](/maintainers/howtomakeaturn)

---

Top Contributors

[![howtomakeaturn](https://avatars.githubusercontent.com/u/1255050?v=4)](https://github.com/howtomakeaturn "howtomakeaturn (32 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)")[![matthieumota](https://avatars.githubusercontent.com/u/2427947?v=4)](https://github.com/matthieumota "matthieumota (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)")[![vittala](https://avatars.githubusercontent.com/u/449426?v=4)](https://github.com/vittala "vittala (1 commits)")[![ManuelRomanato](https://avatars.githubusercontent.com/u/85669332?v=4)](https://github.com/ManuelRomanato "ManuelRomanato (1 commits)")

---

Tags

pdfpdfinfo

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.4k99.4M385](/packages/barryvdh-laravel-dompdf)[tecnickcom/tcpdf

Deprecated legacy PDF engine for PHP. Use instead tecnickcom/tc-lib-pdf.

4.5k109.8M580](/packages/tecnickcom-tcpdf)[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k83.4M565](/packages/mpdf-mpdf)[knplabs/knp-snappy

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

4.5k72.4M62](/packages/knplabs-knp-snappy)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k36.7M157](/packages/spatie-browsershot)[smalot/pdfparser

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

2.7k40.5M272](/packages/smalot-pdfparser)

PHPackages © 2026

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