I have one .pdf file and I want to read with this file using PHP. and I know that i need pdf library for do that but i haven't any information about that so, please give me detail info for that library also...!
Hi Kuldeep,
I had researched this a while ago and Adobe did not have any public apis to work with a pdf document. I still doubt if they have exposed any apis.
Thanks for reply. can u tell me any other option for reading the PDF file.actully i want to fetch some data from PDF and right in to my Database so How can i do this?
The way I did it was creating a desktop application with an IE control; load the PDF, programmatically right click on the document and copy. Then parse the copied contents using regular expressions. However, there is room for a lot of mistakes in this approach. Also, the author of the PDF can set the text in the document not selectable. In such scenario, this approach will not work.
One more alternative is to grab a snapshot of the document and parse the bitmap to detect the text in the bitmap. This again is a tedious job .... out of my radar
Thanks for the answer but i would like to inform you that i m making the Web application so i couldn't use desktop application so plz reply me that which i can use with web application.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.