Download the PHP package dmitry-kuchura/pdf-to-html-php without Composer

On this page you can find all versions of the php package dmitry-kuchura/pdf-to-html-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pdf-to-html-php

Build Status

PDF to HTML PHP Class

A simple class for converting PDF files into HTML documents. This package was forked from the original maintainer. 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.

Installation

Or add this package to your composer.json

Requirements

  1. You must install the poppler-utils package on your system. You must also make sure that the user who owns poppler-utils aligns with the your Nginx user, otherwise you will not be able to access this package.

  2. Before instantiating the Pdf class, you will need to tell the library about the location of your binaries. Without this, the default fallback will be used (which is likely incorrect for most people) and you will receive a generic error. You may do this by using the Config::set method of this class.

Note: The Config method is the same repository implementation that Laravel uses.

Usage

Having setup your poll-utils package and provided the location to the library, you can proceed with the following:

WARNING! If you're not working in an environment that automatically loads the vendor list from composer, you will need to manually do so yourself by adding include /vendor/autoload.php at the top of your file. If you're in Laravel, you do not need this.

Usage:

Passing options to getDOM

By default getDom() will extract all of the images contained in the pdf. If you do not wish to maintain the images, you can specify this property prior to calling `\$pdf->html() to generate your HTML document.

Available Options

Additionally, you may pass several arguments to the Pdf constructor. These arguments are passed as flags to the underlying pdftohtml binary. You can view the man page for a full list of options

Usage note for OS/X Users

Thanks to @kaleidoscopique for giving a try and make it run on OS/X for this package

1. Install brew

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

2. Install poppler

3. Verify the path of pdfinfo and pdftohtml

Feedback & Contribute

Send me an issue for improvement or any buggy thing. I love to help and solve another people problems. Thanks :+1:


All versions of pdf-to-html-php with dependencies

PHP Build Version
Package Version
Requires thesoftwarefanatics/php-html-parser Version ^1.8.0
illuminate/config Version ~5
symfony/process Version ^4.2
symfony/filesystem Version ^4.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dmitry-kuchura/pdf-to-html-php contains the following files

Loading the files please wait ....