PHPackages                             bryank-ac/pdftohtml-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. bryank-ac/pdftohtml-php

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

bryank-ac/pdftohtml-php
=======================

PDF to HTML converter with PHP using Poppler-utils

v2.1.0(6y ago)063MITPHPPHP ^7.1.3

Since Jul 23Pushed 6y agoCompare

[ Source](https://github.com/BryanK-AC/pdf-to-html)[ Packagist](https://packagist.org/packages/bryank-ac/pdftohtml-php)[ RSS](/packages/bryank-ac-pdftohtml-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (6)Versions (11)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/ae8f5c5d4a5c6ece9630e18efe982aaf6ccb342d578a33fa75cfd8aab6db876d/68747470733a2f2f706f7365722e707567782e6f72672f627279616e6b2d61632f706466746f68746d6c2d7068702f762f737461626c65)](https://packagist.org/packages/bryank-ac/pdftohtml-php)[![Total Downloads](https://camo.githubusercontent.com/473585f70b2fee27ac87677a4e2d84b9254e80253c622c23c54aeac0cf8eafbd/68747470733a2f2f706f7365722e707567782e6f72672f627279616e6b2d61632f706466746f68746d6c2d7068702f646f776e6c6f616473)](https://packagist.org/packages/bryank-ac/pdftohtml-php)[![Build Status](https://camo.githubusercontent.com/1f2c2db3126f45fdaeaa6e82247b888d7960c507b7c31d4eda4376e190e95670/68747470733a2f2f7472617669732d63692e636f6d2f427279616e4b2d41432f7064662d746f2d68746d6c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/BryanK-AC/pdf-to-html)[![Coverage Status](https://camo.githubusercontent.com/99ef276cf8c9213b24620e21ffacec0cfe57cdd8c5e5b5a91b885187dbb6fc2c/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f427279616e4b2d41432f7064662d746f2d68746d6c2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/BryanK-AC/pdf-to-html?branch=master)

A simple class for converting PDF files into HTML documents. This package was forked from the [original maintainer](https://github.com/mgufrone/pdf-to-html). As it has since been abandoned, I've decided to migrate the package and port it so that it can be used in php 7.2+ environments.

Inspiration from [garrensweet](https://github.com/garrensweet)

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

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

This class brought to you so you can use php and poppler-utils convert your pdf files to html file

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

[](#important-notes)

Please see how to use below, since it's really upgraded and things in this package has already changed.

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 bryank-ac/pdftohtml-php

```

Or add this package to your `composer.json`

```
{
	"bryank-ac/pdftohtml-php":"~2"
}
```

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

[](#requirements)

1. Poppler-Utils
    - Ubuntu Distro, just install it from apt `sudo apt-get install poppler-utils`
    - MacOS, use [brew](https://formulae.brew.sh/formula/poppler), see OSX notes section below `brew install poppler`
2. PHP Configuration with shell access enabled

Usage
-----

[](#usage)

Here is an example.

```
