943,715 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 7582
  • PHP RSS
You are currently viewing page 1 of this multi-page discussion thread
Jul 7th, 2008
0

How to read .pdf file..?

Expand Post »
Hi All

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


Thanks in advance.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kuldeep04 is offline Offline
9 posts
since Jul 2008
Jul 10th, 2008
0

Re: How to read .pdf file..?

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.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ratri is offline Offline
21 posts
since Jul 2008
Jul 11th, 2008
0

Re: How to read .pdf file..?

Hi Ratri,

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?

and Thanks again for Reply....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kuldeep04 is offline Offline
9 posts
since Jul 2008
Jul 11th, 2008
0

Re: How to read .pdf file..?

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
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ratri is offline Offline
21 posts
since Jul 2008
Jul 14th, 2008
0

Re: How to read .pdf file..?

Hi Ratri,

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.


Thanks again...!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kuldeep04 is offline Offline
9 posts
since Jul 2008
Jul 14th, 2008
0

Re: How to read .pdf file..?

Hi Kuldeep,
At this point, there is not much that can be done unless Adobe exposes some some PDF api; which at this point they are not.
Reputation Points: 10
Solved Threads: 1
Newbie Poster
ratri is offline Offline
21 posts
since Jul 2008
Jul 14th, 2008
0

Re: How to read .pdf file..?

I'm reading that the way to go on this is PDFlib-PDI, I cannot give you any examples as I have only worked with pdflib, not pdi.
Reputation Points: 358
Solved Threads: 89
Posting Shark
R0bb0b is offline Offline
986 posts
since Jun 2008
Jul 14th, 2008
0

Re: How to read .pdf file..?

Is it really possible ?
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Jul 14th, 2008
0

Re: How to read .pdf file..?

Looks like there are examples.
Reputation Points: 358
Solved Threads: 89
Posting Shark
R0bb0b is offline Offline
986 posts
since Jun 2008
Jul 14th, 2008
0

Re: How to read .pdf file..?

Last edited by R0bb0b; Jul 14th, 2008 at 4:11 pm.
Reputation Points: 358
Solved Threads: 89
Posting Shark
R0bb0b is offline Offline
986 posts
since Jun 2008

This thread is more than three months old

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.
Message:
Previous Thread in PHP Forum Timeline: mod_rewrite please help
Next Thread in PHP Forum Timeline: .htaccess logon issue





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC