bureaupartners / pdfgrep
Composer PHP handler for pdfgrep
Installs: 1 019
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 1
Requires
- php: >=7.0
Requires (Dev)
- phpunit/phpunit: ^8
This package is auto-updated.
Last update: 2025-01-05 10:36:39 UTC
README
A simple package for reading information via full text search with pdfgrep and using the information in a PHP script.
Installing / Getting started
First add bureaupartners/pdfgrep to your composer.json
composer require bureaupartners/pdfgrep
Then add the following code to your project
use BureauPartners\pdfgrep\pdfgrep; $pdfgrep = new pdfgrep('Document.pdf', 'Dog'); $pdfgrep->getFirstMatch(); // Returns first match in the document $pdfgrep->getMatches(); // Returns all the matches $pdfgrep->getPageNumbers(); // Returns all page numbers with a match
Dependencies
Requires an installation of pdfgrep on the server.
You can install it for example like this:
apt-get install -y poppler-utils apt-get install -y pdfgrep
Contributing
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
Links
- Repository: https://github.com/bureaupartners/pdfgrep
- Issue tracker: https://github.com/bureaupartners/pdfgrep/issues
Licensing
The code in this project is licensed under MIT license.