leomage / php-pdfbox
PHP-PDFBox
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
pkg:composer/leomage/php-pdfbox
Requires
- php: ^7.1
- psr/log: ^1.0
- symfony/process: ^4.0
Requires (Dev)
- phpunit/phpunit: ^6.2
This package is auto-updated.
Last update: 2025-10-17 03:22:04 UTC
README
PHP-PDFBox is a tiny lib which helps you to use PDFBox https://pdfbox.apache.org
PDFBox is published under the Apache License v2.0 and is described as "The Apache PDFBox® library is an open source Java tool for working with PDF documents."
Installation
It is recommended to install PHP-PDFBox through Composer :
{
"require": {
"leomage/php-pdfbox": "^1.0"
}
}
Main API usage:
$file = new \Pdfbox\Processor\PdfFile( new Pdfbox( '/path/to/java', '/path/to/pdfbox-app.jar', new \Psr\Log\NullLogger() ); ); // Convert pdf to text echo $file->toText('test.pdf');
See examples/*.php for more examples.
License
PHP-Pdfbox is released under MIT License http://opensource.org/licenses/MIT
See LICENSE file for more information