Extracting the contents of pdf document using PHP

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Extracting the contents of pdf document using PHP

Postby bogasrikanth » 29. September 2008 22:19

Hi Friends,

I got this pdf document with lot of images and formatting. I wanted to read this document using PHP and then display the same on my web page. How can I do this ? Please please help me out with this.

Looking forward. thanking you.

Best Wishes
sreekanth
bogasrikanth
 
Posts: 18
Joined: 13. August 2008 19:02

Postby glitzi85 » 29. September 2008 22:40

Hello,

what do you mean exactly? You have an PDF and want to transform it to HTML? If yes, then just search in Google for PDF2HTML, you will find enough programs to do this.

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Postby bogasrikanth » 29. September 2008 22:50

Hey Glitzi,

I wanted to do this in PHP. I wanted to code it using PHP Language.
I need some code for that. How can I do it.

I wanted to do it dynamically.
For example:

A web user wants to read the user manual of a particular thing. He clicks on the link of the thing that he is interested in. Up on Clicking this link he should be able to see the manual that has been read by PHP in the back.

Thanks
srikanth
bogasrikanth
 
Posts: 18
Joined: 13. August 2008 19:02

Postby glitzi85 » 29. September 2008 23:14

OK, you want to parse PDFs with PHP and just put out the content.

In PHP itself there is no such function. You either have to search google if somebody ever programmed such a function or you have to use a programm on OS-Level and call this Program with system() or exec(). On Sourceforge there is an Experimental Program called pdftohtml: http://sourceforge.net/projects/pdftohtml/
You would have to compile this on your Computer, then running it from PHP and forward the created Ressources to the user.

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Postby bogasrikanth » 29. September 2008 23:19

Hi Glitzi,

Thank you so much for the link. I will look in to this and get back to you.

Does this s/w provide with the calls needed for me ?

Srikanth
bogasrikanth
 
Posts: 18
Joined: 13. August 2008 19:02


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 132 guests