| | |
How to read .pdf file..?
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jul 2008
Posts: 21
Reputation:
Solved Threads: 1
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.
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.
RaTri
My Cricket Community
My Cricket Community
•
•
Join Date: Jul 2008
Posts: 21
Reputation:
Solved Threads: 1
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
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
RaTri
My Cricket Community
My Cricket Community
•
•
Join Date: Jul 2008
Posts: 21
Reputation:
Solved Threads: 1
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.
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.
RaTri
My Cricket Community
My Cricket Community
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.
“Be who you are and say what you feel because those who mind don't matter and those who matter don't mind.” - Dr. Seuss
-- The documentation is inevitable, you may get away with it for a little while but eventually you too will have to do the deed.
-- The documentation is inevitable, you may get away with it for a little while but eventually you too will have to do the deed.
![]() |
Similar Threads
- How to Read PDf File Using php (PHP)
- .pdf file (Windows NT / 2000 / XP)
- Opening a .pdf file at the clientside without the open/save dialog box (ASP.NET)
- read no of occurence of word in a pdf using c# (C#)
- Open the exixting pdf file Using PHP (PHP)
Other Threads in the PHP Forum
- Previous Thread: Flash Loading Bar
- Next Thread: array in a session
| Thread Tools | Search this Thread |
.htaccess ajax apache api array beginner binary broken buttons cakephp checkbox class cms code cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail mediawiki menu mlm mod_rewrite multiple mysql number oop paypal pdf php phpincludeissue phpmyadmin problem query radio random recursion regex remote script search server sessions sms soap source sp space speed sql subdomain syntax system table tag tutorial update upload url validation validator variable vbulletin video web websphere white xml youtube






