Question

Can we able to read the data from a PDF file to PHP. We are able to read data from an excel or csv file, that can be directly imported to db using PHP.

Similarly is there any way to read data from a pdf file, and import it to database using PHP.

For Eg:

in a pdf file i have a table employee details can we able to import that data to db using php..

Was it helpful?

Solution

You can try something like PDF Parser - http://www.pdfparser.org/

This will allow you to extract text from a PDF. From there, you can create a script to parse the extracted text and insert it into your database.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top