PHPackages                             kduma/pdf-imposition - 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. kduma/pdf-imposition

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

kduma/pdf-imposition
====================

PDF Imposition Toolkit

v0.1(5y ago)0282GPL-2.0-or-laterPHPPHP ^7.4

Since Jul 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kduma-OSS/PHP-pdf-imposition)[ Packagist](https://packagist.org/packages/kduma/pdf-imposition)[ Docs](https://github.com/kduma/pdf-imposition)[ RSS](/packages/kduma-pdf-imposition/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

PDF Imposition Toolkit
======================

[](#pdf-imposition-toolkit)

[![Latest Version on Packagist](https://camo.githubusercontent.com/61b8a19619f958a8be27960ed6679fdda7c26f36e7df011b8b5fabae0aaea708/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b64756d612f7064662d696d706f736974696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kduma/pdf-imposition)[![Build Status](https://camo.githubusercontent.com/15b3f1fb5035c7d66cc2bdbdafb09cc0567313ccf191be75d1621a3e8cee3187/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b64756d612f7064662d696d706f736974696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/kduma/pdf-imposition)[![Quality Score](https://camo.githubusercontent.com/cf991bedc3d0d2661461ac404084edcdb759549b2fc8c0b3878f330592574abb/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6b64756d612f7064662d696d706f736974696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/kduma/pdf-imposition)[![Total Downloads](https://camo.githubusercontent.com/974482ae643aa96971403a75416d69819ddf8b650ac9d40f8dc9b84db669a5e4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b64756d612f7064662d696d706f736974696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kduma/pdf-imposition)

PDF Imposition Toolkit

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

[](#installation)

You can install the package via composer:

```
composer require kduma/pdf-imposition
```

Usage
-----

[](#usage)

```
use Kduma\PdfImposition\LayoutGenerators\AutoGridPageLayoutGenerator;
use Kduma\PdfImposition\LayoutGenerators\Markers\PrinterBoxCutMarkings;
use Kduma\PdfImposition\PdfImposer;
use Kduma\PdfImposition\PdfSource;
use Kduma\PdfImposition\DTO\Size;

$cardSize = Size::make(90, 50);

$layoutGenerator = new AutoGridPageLayoutGenerator($cardSize);
$layoutGenerator->center();

$layoutGenerator = new PrinterBoxCutMarkings($layoutGenerator);

$PdfImposer = new PdfImposer($layoutGenerator);

$cards = (new PdfSource)->read('input.pdf');
$PdfImposer->export($cards, 'output.pdf');
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Krystian Duma](https://github.com/kduma)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

PHP Package Boilerplate
-----------------------

[](#php-package-boilerplate)

This package was generated using the [PHP Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2114d ago

### Community

Maintainers

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

---

Top Contributors

[![kduma](https://avatars.githubusercontent.com/u/1062582?v=4)](https://github.com/kduma "kduma (10 commits)")

---

Tags

pdfphpKDumapdf-imposition

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kduma-pdf-imposition/health.svg)

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

###  Alternatives

[carlos-meneses/laravel-mpdf

Laravel Mpdf: Using Mpdf in Laravel to generate Pdfs.

4403.1M7](/packages/carlos-meneses-laravel-mpdf)[kartik-v/yii2-mpdf

A Yii2 wrapper component for the mPDF library which generates PDF files from UTF-8 encoded HTML.

1605.5M84](/packages/kartik-v-yii2-mpdf)[contributte/pdf

Pdf response extension for Nette Framework

43967.8k2](/packages/contributte-pdf)[robregonm/yii2-pdf

Yii 2 PDF Response Formatter

4647.5k1](/packages/robregonm-yii2-pdf)[jkuchar/pdfresponse

PdfResponse is wrapper of mPDF for Nette.

10329.4k](/packages/jkuchar-pdfresponse)[famelo/pdf

Provides a quick and simple way to generate a PDF from a Fluid Template through the MPDF library

1872.8k](/packages/famelo-pdf)

PHPackages © 2026

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