PHPackages                             vworld/poppler-php - 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. vworld/poppler-php

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

vworld/poppler-php
==================

Complete, Comprehensive and Flexible PHP wrapper for Poppler-utils

2.0.1(5y ago)0221MITPHPPHP &gt;=7.2.5

Since Oct 17Pushed 5y agoCompare

[ Source](https://github.com/vworld/poppler-php)[ Packagist](https://packagist.org/packages/vworld/poppler-php)[ RSS](/packages/vworld-poppler-php/feed)WikiDiscussions master Synced 1w ago

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

PopplerPhp: Comprehensive PHP wrapper for Poppler-utils
=======================================================

[](#popplerphp-comprehensive-php-wrapper-for-poppler-utils)

PopplerPhp is a complete and very flexible PHP wrapper for [Poppler-utils](http://poppler.freedesktop.org/). This package is brought to you so you can use php and poppler-utils to extract contents from, and convert your pdf files to any of these formats:

- HTML
- JPG, PNG, TIFF
- PostScript (PS)
- Encapsulated PostScript (EPS)
- Scalable Vector Graphic (SVG)
- Plain Text

You can also use this package to split pdf files, combine pdf files, and detach embedded items from pdf files using within your php scripts. With the `NcJoes\PopplerPhp\PdfInfo` class, you can query meta-data of any pdf file.

Important Notes
---------------

[](#important-notes)

### Installation

[](#installation)

It is recommended to install Poppler-PHP through [Composer](http://getcomposer.org/).

Run this command within your project directory

```
composer require ncjoes/poppler-php
```

Or add this line to your `composer.json`

```
{
	"ncjoes/poppler-php": "0.1.*"
}
```

### Dependencies

[](#dependencies)

In order to use Poppler-PHP, you need to install Poppler. Depending of your configuration, please follow the instructions at . You will also need to configure your PHP environment to enable shell access.

Briefly,

#### If you are using Ubuntu Distro, just install it from apt:

[](#if-you-are-using-ubuntu-distro-just-install-it-from-apt)

```
sudo apt-get install poppler-utils
```

#### For Windows Users

[](#for-windows-users)

First download poppler-utils for windows here .

Extract the downloaded archive and copy the contents of the `bin` directory to `your-project-path/vendor/bin/poppler/`.

#### For OS/X Users

[](#for-osx-users)

**1. Install brew**

Brew is a famous package manager on OS/X :  (aptitude style).

**2. Install poppler**

```
brew install poppler
```

### Usage

[](#usage)

Here are some samples.

```
