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.Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Fellow title is reserved for select members who demonstrate sustained contributions, industry leadership, and outstanding performance. We will announce the experts being inducted into the Experts Exchange Fellowship during the annual Expert Awards, but unlike other awards, Fellow is a lifelong status. This title may not be given every year if there are no obvious candidates.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.