I am trying to extract the data from several pdf's into a database and I found the code but I can only get it working when inputing a single file each time.
I am using the resource class.pdf2text.php @ http://pastebin.com/hRviHKp1
With the Code:
*#this is outside of the loop
include('class.pdf2text.php');
#this is inside the loop
$a = new PDF2Text();
$a->setFilename('$userDoc'); //grab the test file at
$a->decodePDF();
echo $a->output();*
The problem I have is after completing the first document successfully, all documents after that return this error Fatal error: Cannot redeclare class PDF2Text in class.pdf2text.php on line 4