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.2.4(1y ago)220.9k↓15.1%1MITPHPPHP &gt;=7.1

Since Jan 2Pushed 1y ago1 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (16)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)

### 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.x.

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:

```
