PHPackages                             dubocr/php-pdf-utils - 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. dubocr/php-pdf-utils

ActiveLibrary

dubocr/php-pdf-utils
====================

PHP Laravel Wrapper for PDF Poppler-utils (XPDF) tool

0130[1 PRs](https://github.com/dubocr/php-pdf-utils/pulls)PHP

Since Oct 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dubocr/php-pdf-utils)[ Packagist](https://packagist.org/packages/dubocr/php-pdf-utils)[ RSS](/packages/dubocr-php-pdf-utils/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Laravel PHP package for PDF tools
=================================

[](#laravel-php-package-for-pdf-tools)

This is a PHP wrapper for `xpdf` - `popper-utils`. See  or .

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

[](#requirements)

- **popper-utils** - `sudo apt-get install popper-utils`. .
- **qpdf** - `sudo apt-get install qpdf`. .

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

[](#installation)

Install this package through [Composer](https://getcomposer.org/).

Run `composer require dubocr/php-pdf-utils`

If necessary, publish the config `php artisan vendor:publish --provider="Dubocr\PdfUtils\Providers\PdfUtilsServiceProvider"`

Laravel &lt; 5.5
----------------

[](#laravel--55)

In Laravel 5.4 and below, package are not auto discovered. You must add Service Provider and Facade in your `config/app.php` file

```
'providers' => [
	...

	/*
	 * Package Service Providers...
	 */
	Dubocr\PdfUtils\Providers\PdfUtilsServiceProvider::class,

	...
]

'aliases' => [
	...

	'PdfUtils' => Dubocr\PdfUtils\Facades\PdfUtils::class,
]
```

Usage
-----

[](#usage)

```
use PdfUtils;
```

```
$pdf = PdfUtils::loadFile($file);
echo $pdf->creator; // Get the creator
echo $pdf->pages; // Get the number of pages
echo $pdf->size; // Get the size
echo $pdf->version; // Get version
//...
$images = $pdf->exportImages(); // Export all PDF images
$images = $pdf->exportImages(1, 3); // Export PDF images for pages 1-3

foreach($pdf->getPages() as $i => $page) {
    $images = $page->exportImages(); // Export current page images
}
```

### Windows user

[](#windows-user)

For user on Windows OS, download Xpdf command line tools Set `POPPLER_PATH="C:\\PATH_TO\\xpdf-tools-win-x.xx\\bin64"` in your `.env` file.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5015156?v=4)[Romain DUBOC](/maintainers/dubocr)[@dubocr](https://github.com/dubocr)

---

Top Contributors

[![dubocr](https://avatars.githubusercontent.com/u/5015156?v=4)](https://github.com/dubocr "dubocr (1 commits)")

### Embed Badge

![Health badge](/badges/dubocr-php-pdf-utils/health.svg)

```
[![Health](https://phpackages.com/badges/dubocr-php-pdf-utils/health.svg)](https://phpackages.com/packages/dubocr-php-pdf-utils)
```

PHPackages © 2026

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