Possible Duplicate:
php: pdf to string
i am trying to save text content of pdf file in to DB. I found this link helpful Converting PDF to string, and worked on it. But it only converts very less amount of data 🙁 why is it so ?
Or any other solution on how to convert complex pdf file (containing header, footer, tables, nd two column layout in some pages etc etc.) in to string and save it to DB ?
A long time ago i wrote a script which download a pdf and convert it into text. This function do the convertion:
EDIT: I call
pdfExtractText()This function is defined here:EDIT2: To get content from a local file use:
EDIT3: Before saving data to db i use an escape function: