开发者

Export pdf table data and import it into mysql

开发者 https://www.devze.com 2023-03-12 12:12 出处:网络
I want to export table data from pdf file and insert it into mysql database. How can I do it? Regards,

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消