PHPackages                             ordinary9843/ghostscript - 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. ordinary9843/ghostscript

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

ordinary9843/ghostscript
========================

Use Ghostscript to merge / split all PDF files or guess and convert PDF file version, and transform PDF into images. Fix FPDI error by Ghostscript: This document PDF probably uses a compression technique which is not supported by the free parser shipped with FPDI.

v2.4.0(2mo ago)124.1k↓39.5%1MITPHPPHP &gt;=7.1CI passing

Since Jan 2Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/ordinary9843/ghostscript)[ Packagist](https://packagist.org/packages/ordinary9843/ghostscript)[ RSS](/packages/ordinary9843-ghostscript/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (4)Versions (19)Used By (0)

Ghostscript
===========

[](#ghostscript)

[![build](https://github.com/ordinary9843/ghostscript/actions/workflows/build.yml/badge.svg)](https://github.com/ordinary9843/ghostscript/actions/workflows/build.yml)[![codecov](https://camo.githubusercontent.com/21e62fea6188a59b52e85fbf17043dc3343c3fd1047bf8732f76bce679ff3c94/68747470733a2f2f636f6465636f762e696f2f67682f6f7264696e617279393834332f67686f73747363726970742f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d444d58525a464e353556)](https://codecov.io/gh/ordinary9843/ghostscript)[![Latest Stable Version](https://camo.githubusercontent.com/170400764caa354d2cffcf3503763fb527c16511bef3159e942495830f63cad3/68747470733a2f2f706f7365722e707567782e6f72672f6f7264696e617279393834332f67686f73747363726970742f76)](https://packagist.org/packages/ordinary9843/ghostscript)[![Total Downloads](https://camo.githubusercontent.com/8ec07ce67b4a532fbecf568969b130f5d30dfcfa52119c77ada4a4c785109079/68747470733a2f2f706f7365722e707567782e6f72672f6f7264696e617279393834332f67686f73747363726970742f646f776e6c6f616473)](https://packagist.org/packages/ordinary9843/ghostscript)[![License](https://camo.githubusercontent.com/257d5174a577c4e02a20fcca0b952424f6a7d26530cd9267ea94235b20be0338/68747470733a2f2f706f7365722e707567782e6f72672f6f7264696e617279393834332f67686f73747363726970742f6c6963656e7365)](https://packagist.org/packages/ordinary9843/ghostscript)

### If there are any features you desire, please open an issue, and I will do our best to meet your requirements!

[](#if-there-are-any-features-you-desire-please-open-an-issue-and-i-will-do-our-best-to-meet-your-requirements)

Intro
-----

[](#intro)

Use Ghostscript to merge / split all PDF files or guess and convert PDF file version, and transform PDF into images. Fix FPDI error by Ghostscript: This document PDF probably uses a compression technique which is not supported by the free parser shipped with FPDI.

Cores
-----

[](#cores)

This library has the following features:

- Full-featured: This library supports PDF version prediction, conversion, merger, and splitting.
- Lower dependency on external libraries: Most Ghostscript libraries have too high a dependency on other libraries.
- Compatible with multiple PHP versions: It can run properly on PHP 7.1 - 8.4.

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

[](#requirements)

This library has the following requirements:

- Ghostscript 9.50+

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

[](#installation)

Install `Ghostscript`:

```
apt-get install ghostscript
```

Install `ordinary9843/ghostscript`:

```
composer require ordinary9843/ghostscript
```

Usage
-----

[](#usage)

Example usage:

```
