waarneembemiddeling/php-pdfimages

dev-master 2015-07-09 09:44 UTC

This package is not auto-updated.

Last update: 2024-09-14 16:13:32 UTC


README

Build Status Scrutinizer Quality Score

PHP 对大多数 Linux 发行版上的 pdfimages 命令 的包装。

使用方法

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 输出

PNG 图片不会被转换为 JPEG,而是作为一个或多个 ppm 文件提取。

测试

cp phpunit.xml.dist phpunit.xml

如有必要,更改 phpunit.xml 中的 env binary 指令。

composer install
php vendor/bin/phpunit