PHPackages                             rton/laravel-qpdf-php-wrapper - 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. rton/laravel-qpdf-php-wrapper

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

rton/laravel-qpdf-php-wrapper
=============================

A Laravel service provider for the rton/qpdf-php-wrapper package.

1.0.3(2mo ago)04.2k↓24%MITPHPPHP ^8.1

Since Aug 30Pushed 2mo agoCompare

[ Source](https://github.com/RTONational/laravel-qpdf-php-wrapper)[ Packagist](https://packagist.org/packages/rton/laravel-qpdf-php-wrapper)[ Docs](https://github.com/RTONational/laravel-qpdf-php-wrapper)[ RSS](/packages/rton-laravel-qpdf-php-wrapper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

laravel-qpdf-php-wrapper
========================

[](#laravel-qpdf-php-wrapper)

A Laravel service provider for the rton/qpdf-php-wrapper package.

Package Installation
--------------------

[](#package-installation)

```
copmoser require rton/laravel-qpdf-php-wrapper

```

Laravel
-------

[](#laravel)

Add the service provider to the providers array in config/app.php

```
Rton\laravel-qpdf-php-wrapper\ServiceProvider::class,

```

Add to your facades:

```
'Qpdf' => Rton\laravel-qpdf-php-wrapper\Facades\Qpdf.php,

```

Usage
-----

[](#usage)

```
// Get qpdf version
Qpdf::getQpdfVersion();

// Check if file is pdf
Qpdf::fileIsPdf($pathToFile);

// Get number of pages in a pdf
Qpdf::getNumberOfPages($pathToFile);

// Rotate range of files in a pdf
Qpdf::rotate($pathToFile, Rton\QpdfPhpWrapper\ENUMS\Rotation::RIGHT, '2-4');

// Trim pdf to page range
Qpdf::trimToRange($pathToFile, '4-z'); // "z" indicates end of file

// Copy range from pdf into a new pdf
Qpdf::copyPages($pathToFile, $pathToOutput, '1,3,5');

// Remove pages from a pdf
Qpdf::removePages($pathToFile, '2,4');

// Overlay a pdf on a range of pages
Qpdf::applyStamp($pathToFile, $fileToOverlay);

// Combine ranges from multiple files into a single pdf
$files = [
  [$pathOne, '1'],
  [$pathTwo, '4-7'],
  [$pathThree, '9-z'],
  // ...
];
Qpdf::combineRangesFromFiles($files, $pathToOutput);
```

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance86

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~183 days

Total

4

Last Release

75d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/df5ea4fa8a404907d7be8ebb44c8b8f4965e34ec027dad366ddfb5020e1abc65?d=identicon)[rtonational](/maintainers/rtonational)

---

Top Contributors

[![msmahon](https://avatars.githubusercontent.com/u/6668279?v=4)](https://github.com/msmahon "msmahon (6 commits)")[![alexandercrice](https://avatars.githubusercontent.com/u/20804591?v=4)](https://github.com/alexandercrice "alexandercrice (5 commits)")[![johnwilhite](https://avatars.githubusercontent.com/u/6500087?v=4)](https://github.com/johnwilhite "johnwilhite (4 commits)")[![houseoftech](https://avatars.githubusercontent.com/u/297458?v=4)](https://github.com/houseoftech "houseoftech (2 commits)")

---

Tags

laravelpdfqpdf

### Embed Badge

![Health badge](/badges/rton-laravel-qpdf-php-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/rton-laravel-qpdf-php-wrapper/health.svg)](https://phpackages.com/packages/rton-laravel-qpdf-php-wrapper)
```

###  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)[elibyy/tcpdf-laravel

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

3542.7M5](/packages/elibyy-tcpdf-laravel)[lucasromanojf/laravel5-pdf

Provides the HTML2PDF functionality using the wkhtmltopdf library (Laravel 5)

1271.8k](/packages/lucasromanojf-laravel5-pdf)[tarfin-labs/easy-pdf

Makes pdf processing easy.

1718.3k](/packages/tarfin-labs-easy-pdf)

PHPackages © 2026

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