Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing data from PDF to Database using PHP

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..

like image 962
ReNiSh AR Avatar asked Oct 23 '25 17:10

ReNiSh AR


1 Answers

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.

like image 61
Darren Taylor Avatar answered Oct 26 '25 08:10

Darren Taylor