rubiconinternational / pdfparser
Pdf parser library. Can read and extract information from pdf file.
Requires
- php: >=7.1
- ext-iconv: *
- ext-zlib: *
- symfony/polyfill-mbstring: ^1.18
- dev-master
- v2.1.1
- v2.1.0
- v2.0.1
- v2.0.0
- v1.2.0-RC2
- v1.2.0-RC1
- v1.1.0
- v1.0.2
- v1.0.1
- v1.0.0
- v0.19.0
- v0.18.2
- v0.18.1
- v0.18.0
- v0.17.1
- v0.17.0
- v0.16.2
- 0.16.1
- v0.16.0
- v0.15.1
- v0.15.0
- v0.14.0
- v0.13.3
- v0.13.2
- v0.13.1
- v0.13.0
- v0.12.0
- v0.11.0
- v0.10.0
- v0.9.26
- v0.9.25
- v0.9.24
- v0.9.23
- v0.9.22
- v0.9.21
- v0.9.20
- v0.9.19
- v0.9.18
- v0.9.17
- v0.9.16
- v0.9.15
- v0.9.14
- v0.9.13
- v0.9.12
- v0.9.11
- v0.9.10
- v0.9.9
- v0.9.8
- v0.9.7
- v0.9.6
- v0.9.5
- v0.9.4
- v0.9.3
- v0.9.2
- v0.9.1
- v0.9.0
- dev-Issue_499
- dev-fix/invalid-characters
This package is auto-updated.
Last update: 2024-11-13 05:26:26 UTC
README
The smalot/pdfparser
is a standalone PHP package that provides various tools to extract data from PDF files.
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!
Features
- Load/parse objects and headers
- Extract metadata (author, description, ...)
- Extract text from ordered pages
- Support of compressed PDFs
- Support of MAC OS Roman charset encoding
- Handling of hexa and octal encoding in text sections
- Create custom configurations (see CustomConfig.md).
Currently, secured documents and extracting form data are not supported.
License
This library is under the LGPLv3 license.
Install
This library requires PHP 7.1+ since v1. You can install it via Composer:
composer require smalot/pdfparser
In case you can't use Composer, you can include alt_autoload.php-dist
. It will include all required files automatically.
Quick example
<?php // Parse PDF file and build necessary objects. $parser = new \Smalot\PdfParser\Parser(); $pdf = $parser->parseFile('/path/to/document.pdf'); $text = $pdf->getText(); echo $text;
Further usage information can be found here.
Documentation
Documentation can be found in the doc folder.