Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to get the text matter from a given PDF using PHP

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 1.37k
    Comment on it

    Hello Reader's, If you want to write a program that takes the matter from a given PDF then now you can use many libraries. These are well function performing and easy to use. Lets see an example below:-

    Download the class.pdf2text.php from here

    Now in the next step you have to include the class.pdf2text.php and pass a pdf file.

    include('class.pdf2text.php');
    $a = new PDF2Text();
    $a->setFilename('Videographer_RFP.pdf'); //grab the test file at http://www.newyorklivearts.org/Videographer_RFP.pdf
    $a->decodePDF();
    echo $a->output();
    

    This code libraries will work perfect for most of pdf and the output will be the text matter from the file.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: