waarneembemiddeling / php-pdfimages
Installs: 10 016
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 5
Forks: 10
Open Issues: 1
Requires
- alchemy/binary-driver: ~1.5
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2024-10-26 16:43:52 UTC
README
PHP wrapper for the pdfimages command available on most linux distro's.
Usage
use Wb\PdfImages\PdfImages;
$pdfImages = PdfImages::create();
// $result is an instance of \FilesystemIterator
$result = $pdfImages->extractImages('path/to/pdf');
$result2 = $pdfImages->extractImages('path/to/pdf', 'path/to/other/destination/dir/then/tmp');
PNG output
PNG images will not be converted to jpeg but will be extracted as one or more ppm files.
Testing
cp phpunit.xml.dist phpunit.xml
Change the phpunit.xml env
binary
directive if necessary.
composer install
php vendor/bin/phpunit