PHP code example of vuthaihoc / pdf-parser
1. Go to this page and download the library: Download vuthaihoc/pdf-parser 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/ */
vuthaihoc / pdf-parser example snippets
$parser = new \Wrseward\PdfParser\Pdf\PdfToTextParser('/usr/bin/pdftotext');
$parser->parse('/path/to/file.pdf');
echo $parser->text();
bash
which pdftotext