PHP code example of viterbit / pdfimages-extractor
1. Go to this page and download the library: Download viterbit/pdfimages-extractor library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
viterbit / pdfimages-extractor example snippets
use Viterbit\PdfImagesExtractor\Pdf;
$images = Pdf::getImages('book.pdf'); //returns a FilesystemIterator
$images = (new Pdf())
->setPdf('book.pdf')
->images();
$images = Pdf::getImages('book.pdf');
$images = (new Pdf('/custom/path/to/pdftoimages'))
->setPdf('book.pdf')
->images();