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(5mo ago)15.3k—4.3%1MITPHPPHP ^8.2

Since Oct 17Pushed 5mo 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 1mo 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

46

—

FairBetter than 93% of packages

Maintenance73

Regular maintenance activity

Popularity27

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

152d 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

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M278](/packages/barryvdh-laravel-dompdf)[barryvdh/laravel-snappy

Snappy PDF/Image for Laravel

2.8k24.8M48](/packages/barryvdh-laravel-snappy)[spatie/laravel-pdf

Create PDFs in Laravel apps

9963.4M12](/packages/spatie-laravel-pdf)[elibyy/tcpdf-laravel

tcpdf support for Laravel 6, 7, 8, 9, 10, 11

3542.7M5](/packages/elibyy-tcpdf-laravel)[avadim/fast-excel-laravel

Lightweight and very fast XLSX Excel Spreadsheet Export/Import for Laravel

4146.7k1](/packages/avadim-fast-excel-laravel)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)

PHPackages © 2026

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