Page 1 of 1

PHP to PDF reader

Posted: Tue Dec 05, 2006 3:11 pm
by user___
Hi guys,
I am developing an application that must read .pdf files online(WITHOUT ANY PLUGINS). I have tried GhostScript but there is no a commandline .exe that can be executed from a php script. How can I create such an application.

Posted: Tue Dec 05, 2006 3:13 pm
by ok

PHP to PDF reader

Posted: Tue Dec 05, 2006 3:27 pm
by user___
Thank you for the immediate reply but I would like to ask you to give me some info or a link to such where I can see the functions that it supports.

Posted: Tue Dec 05, 2006 3:32 pm
by ok
What you want to do with the data inside the PDF file?

PHP to PDF reader

Posted: Tue Dec 05, 2006 3:33 pm
by user___
To convert it from pdf to simple html files.

PHP to PDF reader

Posted: Tue Dec 05, 2006 3:52 pm
by user___
I have tried the commands described in HTMLTOPDF specs but the only output is the list of the command it supports. What is the problem.

PHP to PDF reader

Posted: Tue Dec 05, 2006 4:05 pm
by user___
I converted the pdf but HTMLTOPDF needs GhostScript to convert the images and this is the problem that I mentioned in the very begining. I can not find a GhostScript command line tool. I have found one but it does not work. Can anyone help me?

Posted: Tue Dec 05, 2006 4:22 pm
by ok
You can use pdf2txt if the style isn't important: http://www.pdf2txt.com/download.htm

And I don't think that pdf2html needs gs (where you saw that pdf2html uses gs?)

PHP to PDF reader

Posted: Tue Dec 05, 2006 4:34 pm
by user___
When I converted a pdf file to html file by it displayed me an error :
Error: PDF version 1.6 -- xpdf supports version 1.5 (continuing anyway)
Page-1
'gswin32c' is not recognized as an internal or external command,
operable program or batch file.
Error: Failed to launch Ghostscript!
and did not convert any images from the pdf file. What is the problem?

Posted: Tue Dec 05, 2006 4:49 pm
by feyd
You need Ghostscript installed.

Posted: Wed Dec 06, 2006 2:18 am
by ok
If you need Ghostscript, install it from http://sourceforge.net/projects/ghostscript/

PHP to PDF reader

Posted: Wed Dec 06, 2006 3:20 am
by user___
Thank you It works. I have done it. Now it converts everything as it is supposed to.