PHP code example of falkemedia / pdf-extractor

1. Go to this page and download the library: Download falkemedia/pdf-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/ */

    

falkemedia / pdf-extractor example snippets

 php


namespace falkemedia\PdfExtractor\Examples;

use falkemedia\PdfExtractor\Extractor;

erate thumbnails
$extractor
    ->setMaxThumbnailHeight(600)
    ->setMaxThumbnailWidth(480)
    ->setQuality(75)
    ->generateThumbnails();

// Store Fulltext infos
$extractor->generateTextDatabase();