PHPackages                             murkrow/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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. murkrow/pdf-utils

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

murkrow/pdf-utils
=================

A poppler-utils wrapper for Laravel applications

1.0(6mo ago)18.8k↓20.7%1MITPHPPHP ^8.2

Since Oct 17Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/Murkrow02/pdf-utils)[ Packagist](https://packagist.org/packages/murkrow/pdf-utils)[ Docs](https://github.com/Murkrow02/pdf-utils)[ RSS](/packages/murkrow-pdf-utils/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (4)Versions (7)Used By (0)

pdf-utils
=========

[](#pdf-utils)

[![Latest Stable Version](https://camo.githubusercontent.com/cd78ac3b8dd92862da88716de1aae824b7aa237660ccb1da198b2e1efd9e1c0a/687474703a2f2f706f7365722e707567782e6f72672f6d75726b726f772f7064662d7574696c732f76)](https://packagist.org/packages/murkrow/pdf-utils)[![Total Downloads](https://camo.githubusercontent.com/b3b53ae18cb5b98eefe622ca327c26b2a8a979465db2fce9d7dddd0e1af7b351/687474703a2f2f706f7365722e707567782e6f72672f6d75726b726f772f7064662d7574696c732f646f776e6c6f616473)](https://packagist.org/packages/murkrow/pdf-utils)

A wrapper for popper-utils for your Laravel project

Prerequisites
-------------

[](#prerequisites)

Ensure to have poppler-utils installed on your system. You can install it with the following command:

```
sudo apt-get install poppler-utils
```

or if you are using a Mac:

```
brew install poppler
```

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

[](#installation)

You can install the package via composer:

```
composer require murkrow/pdf-utils
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Murkrow\PdfUtils\PdfUtilsServiceProvider"
```

Usage
-----

[](#usage)

### Convert PDF to text

[](#convert-pdf-to-text)

```
use Murkrow\PdfUtils\Services\ParsePdfTextService;
ParsePdfTextService::create()
        ->setInputFile("example.pdf")
        ->flattenText(false)
        ->execute()
        ->getOperationResult()
```

### Merge multiple PDFs into one

[](#merge-multiple-pdfs-into-one)

```
use Murkrow\PdfUtils\Services\MergePdfService;
MergePdfService::create()
        ->setInputFiles(["1.pdf", "2.pdf"])
        ->addInputFile("3.pdf")
        ->setOutputFile("123.pdf")
        ->execute();
```

### Split PDF into multiple PDFs

[](#split-pdf-into-multiple-pdfs)

```
use Murkrow\PdfUtils\Services\SplitPdfService;
SplitPdfService::create()
        ->setInputFile("123.pdf")
        ->setOutputFilesDirectory("splitting")
        ->fromPage(1)
        ->toPage(3)
        ->setOutputFileNamePrefix("output")
        ->execute();
```

### Extract page range from PDF

[](#extract-page-range-from-pdf)

```
use Murkrow\PdfUtils\Services\ExtractPdfPageRangeService;
ExtractPdfPageRangeService::create()
    ->fromPage(1)
    ->toPage(2)
    ->setInputFile('big.pdf')
    ->setOutputFile('subset.pdf')
    ->execute();

```

### Get PDF info (incomplete)

[](#get-pdf-info-incomplete)

```
use Murkrow\PdfUtils\Services\GetPdfInfoService;
$result = GetPdfInfoService::create()
        ->setInputFile("123.pdf")
        ->execute();

dd($result->pages);
```

Testing
-------

[](#testing)

```
vendor/bin/pest
```

Contributing
------------

[](#contributing)

Contributions are welcome, you are free to open a PR or an issue.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance66

Regular maintenance activity

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 92.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 ~158 days

Recently: every ~198 days

Total

6

Last Release

199d ago

Major Versions

0.5 → 1.02025-12-17

PHP version history (2 changes)0.1PHP ^8.1

0.5PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/9b1466e76ca952c12721cc4358e28d82c25402f810954e0001acbf4cd38be3af?d=identicon)[murkrow](/maintainers/murkrow)

---

Top Contributors

[![Murkrow02](https://avatars.githubusercontent.com/u/38087157?v=4)](https://github.com/Murkrow02 "Murkrow02 (13 commits)")[![nonDeath](https://avatars.githubusercontent.com/u/729398?v=4)](https://github.com/nonDeath "nonDeath (1 commits)")

---

Tags

laravelpdfpdf-utilspopper-utilsmurkrow

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M306](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)

PHPackages © 2026

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