php-pdfimages
, (*1)
PHP wrapper for the pdfimages command available on most linux distro's., (*2)
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., (*3)
Testing
cp phpunit.xml.dist phpunit.xml
Change the phpunit.xml env binary directive if necessary., (*4)
composer install
php vendor/bin/phpunit