PHPackages                             ngekoding/pdf-merger - 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. ngekoding/pdf-merger

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

ngekoding/pdf-merger
====================

Merge multiple PDF files into a single PDF using Ghostscript.

v1.0.1(1y ago)3867↑200%MITPHP

Since May 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ngekoding/pdf-merger)[ Packagist](https://packagist.org/packages/ngekoding/pdf-merger)[ RSS](/packages/ngekoding-pdf-merger/feed)WikiDiscussions master Synced 1mo ago

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

pdf-merger
==========

[](#pdf-merger)

Merge multiple PDF files into a single PDF using Ghostscript.

This library uses the Ghostscript CLI to efficiently merge PDF files on Linux or any environment where Ghostscript is installed.

Why this library?
-----------------

[](#why-this-library)

There are many PDF merger libraries out there, but most rely on **FPDI**, which has limitations in its free version—especially when dealing with certain types of PDFs.

We created **pdf-merger** as a simple alternative that uses **Ghostscript** instead, offering a reliable and unrestricted solution for merging PDFs without those limitations.

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

[](#requirements)

- PHP 5.6 or above
- Ghostscript CLI (`gs` command)

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

[](#installation)

```
composer require ngekoding/pdf-merger
```

Usage
-----

[](#usage)

### Simple usage

[](#simple-usage)

```
