https://php-xpdf.readthedocs.io/en/latest/
The first problem was trying to install composer. I already have curl installed, PHP 5.6.25 installed but when I tried installing using their curl example :# Install composer
curl -s http://getcomposer.org/installer | php
# Upgrade your install
php composer.phar install
it errored out.https://getcomposer.org/doc/00-intro.md
and selected 'developer' and from the cmd line, I executed composer -v. It appears to be installed correctly. (In my previous attempts, I used the option of everyone but thought better of it so I uninstalled it, reboot my computer and installed using developers mode.http://www.xpdfreader.com/download.html
c:\wamp\www\PDFConvert
My Vendor folder path is:c:\wamp\www\PDFConvert\Vendor
use Monolog\Logger;
use Monolog\Handler\NullHandler;
use XPDF\PdfToText;
// Create a logger
$logger = new Logger('MyLogger');
$logger->pushHandler(new NullHandler());
// You have to pass a Monolog logger
// This logger provides some usefull infos about what's happening
$pdfToText = PdfToText::load($logger);
// open PDF
$pdfToText->open('PDF-book.pdf');
// PDF text is now in the $text variable
$text = $pdfToText->getText();
$pdfToText->close();
{
"require": {
"monolog/monolog": "^1.25",
"php-console/php-console": "^3.1"
"php-xpdf/php-xpdf": "master"
}
}
I even preceded the previous locations with vendor/ and tried it.Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE