PHP code example of skuola / pdf-text-parser
1. Go to this page and download the library: Download skuola/pdf-text-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/ */
skuola / pdf-text-parser example snippets
= '...'; // the text above
$converter = new \Skuola\PdfTextParser\Converter($data);
// get as plain text...
$txt = $converter->getAsText();
// ...or get as HTML
$html = $converter->getAsHtml();
= '...'; // a path containing the same text as previous example
$converter = new \Skuola\PdfTextParser\Converter(null, $path);
$html = $converter->getAsHtml();