PHPackages                             xxxwer/pdftohtml-poppler - 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. xxxwer/pdftohtml-poppler

ActiveLibrary

xxxwer/pdftohtml-poppler
========================

This PHP class can convert your pdf files to html using poppler-utils.

1.0.7(7y ago)171GPL-1.0PHPPHP &gt;=5.4.0

Since Sep 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/xxxwer/pdf-to-html)[ Packagist](https://packagist.org/packages/xxxwer/pdftohtml-poppler)[ RSS](/packages/xxxwer-pdftohtml-poppler/feed)WikiDiscussions master Synced 2d ago

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

PDF to HTML PHP Class
=====================

[](#pdf-to-html-php-class)

This PHP class can convert your pdf files to html using poppler-utils.

Thanks
------

[](#thanks)

Big thanks Mochamad Gufron ([mgufrone](https://github.com/mgufrone))! I did a packet based on its package ().

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

[](#important-notes)

Please see how to use below.

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

[](#installation)

When you are in your active directory apps, you can just run this command to add this package on your app

```
  composer require tonchik-tm/pdf-to-html:~1

```

Or add this package to your `composer.json`

```
{
  "tonchik-tm/pdf-to-html":"~1"
}
```

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

[](#requirements)

### 1. Install Poppler-Utils

[](#1-install-poppler-utils)

**Debian/Ubuntu**

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

**Mac OS X**

```
brew install poppler
```

**Windows**

For those who need this package in windows, there is a way. First download poppler-utils for windows here . And download the latest binary.

After download it, extract it.

### 2. We need to know where is utilities

[](#2-we-need-to-know-where-is-utilities)

**Debian/Ubuntu**

```
$ whereis pdftohtml
pdftohtml: /usr/bin/pdftohtml

$ whereis pdfinfo
pdfinfo: /usr/bin/pdfinfo
```

**Mac OS X**

```
$ which pdfinfo
/usr/local/bin/pdfinfo

$ which pdftohtml
/usr/local/bin/pdfinfo
```

**Windows**

Go in extracted directory. There will be a directory called `bin`. We will need this one.

### 3. PHP Configuration with shell access enabled

[](#3-php-configuration-with-shell-access-enabled)

Usage
-----

[](#usage)

**Example:**

```
