【文件属性】:
文件名称:php-pdfimages:用于pdfimagesPHP包装器
文件大小:63KB
文件格式:ZIP
更新时间:2021-05-22 15:12:53
PHP
php-pdfimages
PHP包装器在大多数Linux发行版中都可用。
用法
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 b
【文件预览】:
php-pdfimages-master
----.gitignore(23B)
----src()
--------Exception()
--------PdfImages.php(3KB)
----.travis.yml(164B)
----LICENSE(1KB)
----composer.json(552B)
----README.md(1KB)
----tests()
--------bootstrap.php(489B)
--------Resources()
--------Tests()
----phpunit.xml.dist(432B)