PHPackages                             ncjoes/pdf-suite - 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. ncjoes/pdf-suite

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

ncjoes/pdf-suite
================

A high level wrapper over Poppler-Php for PDF content extraction and conversion using Poppler utils

v0.1.4(8y ago)82681MITPHPPHP &gt;=5.5.9

Since Oct 17Pushed 8y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (6)Versions (6)Used By (0)

PDF-Suite - a high level PHP wrapper over [PopplerPhp](https://github.com/ncjoes/poppler-php)
=============================================================================================

[](#pdf-suite---a-high-level-php-wrapper-over-popplerphp)

#### PDF Suite extracts and converts the contents of PDF files to various formats, including HTML and SVG using Poppler utils

[](#pdf-suite-extracts-and-converts-the-contents-of-pdf-files-to-various-formats-including-html-and-svg-using-poppler-utils)

[![PDF-to-Html](tests/etc/pdf-to-html5.png)](tests/etc/pdf-to-html5.png)[![PDF-to-Images](tests/etc/pdf-to-image.png)](tests/etc/pdf-to-image.png)[![PDF-to-Text](tests/etc/pdf-to-text.png)](tests/etc/pdf-to-text.png)[![PDF-Splitter](tests/etc/pdf-split.png)](tests/etc/pdf-split.png)[![PDF-Combiner](tests/etc/pdf-merger.jpg)](tests/etc/pdf-merger.jpg)[![PDF-to-SVG](tests/etc/pdf-to-svg.png)](tests/etc/pdf-to-svg.png)

Why Use PDF-Suite?
------------------

[](#why-use-pdf-suite)

Many packages tagged as PDF converters are actually \*-&gt;PDF converters, i.e from other formats to PDF. PDF Suite, on the other hand, provides a high level of abstraction over the [PopplerPhp](https://github.com/ncjoes/poppler-php) package, making it more easy to convert your PDF files into any of the formats supported by [Poppler utils](poppler.freedesktop.org). These supported formats include:

- 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 PHP.

How to Install?
---------------

[](#how-to-install)

You can install this package using any of these 2 methods:

- Install it via Composer (ncjoes/pdf-suite on Packagist);
- Use the official Git repository ().

Then, require the vendor/autoload.php file to enable the autoloading mechanism provided by Composer. Otherwise, your application won't be able to find the classes of this Symfony component.

Finally, point the config settings to the location of Poppler utils binaries on your php server. See [PopplerPhp](https://github.com/ncjoes/poppler-php) installation notes for help with Poppler Utils installation.

How to Use?
-----------

[](#how-to-use)

Setup Poppler utils binaries location

```
NcJoes\PdfSuite\Config::setBinDirectory($dir);
```

Here are some examples.

```
