PHP code example of zarulizham / laravel-ocrmypdf
1. Go to this page and download the library: Download zarulizham/laravel-ocrmypdf 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/ */
zarulizham / laravel-ocrmypdf example snippets
return [
'path' => env('OCRMYPDF_PATH', '/usr/local/bin/ocrmypdf'),
];
OCRmyPDF::input(storage_path('panic.pdf'))
->output(storage_path('converted/panic.pdf'))
->redoOcr()
->addOption('--redo-ocr')
->addOption('--title Panic Document')
->addOption('--author Zarul Izham')
->begin();
bash
php artisan vendor:publish --provider="ZarulIzham\OCRmyPDF\OCRmyPDFServiceProvider" --tag="laravel-ocrmypdf-config"