wrseward / pdf-parser
PHP library to parse text from PDF files
Installs: 4 741
Dependents: 0
Suggesters: 0
Security: 0
Stars: 16
Watchers: 4
Forks: 6
Open Issues: 2
Requires
- php: >=5.3.3
- symfony/process: ~2.7
Requires (Dev)
- mikey179/vfsstream: ~1.5
- phpspec/phpspec: ~2.2
This package is not auto-updated.
Last update: 2024-04-27 15:31:43 UTC
README
PHP library to parse PDF files to text. A wrapper for pdftotext.
Installation
Via Composer
composer require wrseward/pdf-parser
pdftotext
binary
Debian / Ubuntu
apt-get install poppler-utils
RedHat / CentOS
yum install poppler-utils
OS X
brew install xpdf
Verify your installation / Get the path of the binary
which pdftotext
Usage
$parser = new \Wrseward\PdfParser\Pdf\PdfToTextParser('/usr/bin/pdftotext'); $parser->parse('/path/to/file.pdf'); echo $parser->text();
Running tests
./vendor/bin/phpspec run