smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

Installs: 5 259 001

Dependents: 102

Suggesters: 5

Security: 0

Stars: 1 577

Watchers: 77

Forks: 434

Open Issues: 148

v1.1.0 2021-08-03 08:33 UTC

README

Pdf Parser, a standalone PHP library, provides various tools to extract data from a PDF file.

CI Scrutinizer Code Quality Code Coverage License

Latest Stable Version Total Downloads Monthly Downloads Daily Downloads

Website : https://www.pdfparser.org

Test the API on our demo page.

This project is supported by Actualys.

Features

Features included :

  • Load/parse objects and headers
  • Extract meta data (author, description, ...)
  • Extract text from ordered pages
  • Support of compressed pdf
  • Support of MAC OS Roman charset encoding
  • Handling of hexa and octal encoding in text sections
  • PSR-0 compliant (autoloader)
  • PSR-1 compliant (code styling)

Currently, secured documents are not supported.

This Library is under active maintenance. There is no active development by the author of this library (at the moment), but we welcome any pull request adding/extending functionality!

Documentation

Read the documentation on website.

Original PDF References files can be downloaded from this url: http://www.adobe.com/devnet/pdf/pdf_reference_archive.html

For developers: Please read DEVELOPER.md for more information about local development of the PDFParser library.

Installation

Using Composer

  • Obtain Composer
  • Run composer require smalot/pdfparser

Use alternate file loader

In case you can't use Composer, you can include alt_autoload.php-dist into your project. It will load all required files at once. Afterwards you can use PDFParser class and others.

License

This library is under the LGPLv3 license.