PHPackages                             tranvantri/pdf-to-html - 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. tranvantri/pdf-to-html

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

tranvantri/pdf-to-html
======================

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

1.0.2(2y ago)0499↓50%MITPHPPHP &gt;=8.0

Since Dec 13Pushed 2y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (7)Versions (4)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)

```
  composer require tranvantri/pdf-to-html

```

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:**

```
