Export pdf table data and import it into mysql
I want to export table data from pdf file and insert it into mysql database. How can I do it?
Regards, 开发者_高级运维Rekha
Start by converting the PDF into text. There's a program called pdf2text which you could download and use to do that (through exec
for instance). Alternatively, there are several PHP classes which can convert the PDF into text like this one I found for you.
Once you have the text, you'll want to parse the text output and populate the data. You'll most likely want to look at regular expressions.
精彩评论