waarneembemiddeling/php-pdftoppm
This package is abandoned and no longer maintained.
No replacement package was suggested.
Package info
github.com/waarneembemiddeling/php-pdftoppm
pkg:composer/waarneembemiddeling/php-pdftoppm
0.0.1
2015-07-09 09:27 UTC
Requires
- alchemy/binary-driver: ~1.5
Requires (Dev)
- phpunit/phpunit: ~4.0
- symfony/http-foundation: v2.5.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 780098379f2852619db2b83fca4cc5cc54bdac40
- Waarneembemiddeling.nl developers <development.woop@waarneembemiddeling.nl>
- Erik van Wingerden <e.vanwingerden.woop@waarneembemiddeling.nl>
This package is not auto-updated.
Last update: 2025-05-07 12:55:18 UTC
README
👁 Build Status
👁 Scrutinizer Code Quality
PHP wrapper for the pdftoppm command which is part of poppler-utils.
The Pdftoppm is a library that handles conversion of PDF files to images. It is available on variety of systems.
Available packages: http://pkgs.org/download/poppler-utils
Usage
use Wb\PdfToPpm\PdfToPpm;
$pdfToPpm = PdfToPpm::create();
// $result is an instance of \FilesystemIterator
$result1 = $pdfToPpm->convertPdf('path/to/pdf');
$result2 = $pdfToPpm->convertPdf('path/to/pdf', 'path/to/other/destination/dir/then/tmp');
// Save as png
$result3 = $pdfToPpm->convertPdf('path/to/pdf', 'path/to/other/destination/dir/then/tmp', true);
// Set specific resolution
$result4 = $pdfToPpm->convertPdf('path/to/pdf', 'path/to/other/destination/dir/then/tmp', true, 300);
Testing
cp phpunit.xml.dist phpunit.xml
Change the phpunit.xml env binary directive if necessary.
composer install
php vendor/bin/phpunit
