2017 © Pedro Peláez
 

library php-pdftoppm

image

waarneembemiddeling/php-pdftoppm

  • Thursday, July 9, 2015
  • by krizon
  • Repository
  • 5 Watchers
  • 3 Stars
  • 2,913 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 1 Versions
  • 6 % Grown

The README.md

php-pdftoppm

Build Status Scrutinizer Code Quality, (*1)

PHP wrapper for the pdftoppm command which is part of poppler-utils., (*2)

The Pdftoppm is a library that handles conversion of PDF files to images. It is available on variety of systems., (*3)

Available packages: [http://pkgs.org/download/poppler-utils][3], (*4)

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., (*5)

composer install
php vendor/bin/phpunit

The Versions

09/07 2015

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Waarneembemiddeling.nl developers
by Erik van Wingerden