mgufrone / pdf-to-html

PDF to HTML PHP Class using Poppler-Utils
MIT License
175 stars 88 forks source link

Problem running on CentOS 6 #17

Closed gbinow closed 8 years ago

gbinow commented 8 years ago

First of all, congratulations on your very good work! My development environment consists of OSXs and Windows machines, and everything works pretty fine. I recently deployed my application to my homologation server (which is currently running CentOS 6) and noticed that the Base.php performs the following system call:

/usr/local/bin/pdftohtml -c -fmt png -zoom 1.5 'path_to_file/file.pdf' 'path_to_file/file.html'

However, the linux binary pdftohtml (which was downloaded from http://www.foolabs.com/xpdf/download.html) does not contain the -c, -fmt, -zoom options. Thus, the html file is not being generated at all.

Could you please help me on that? Thanks very much!

mgufrone commented 8 years ago

how about you install the poppler-utils using yum?

gbinow commented 8 years ago

Tried that but no success :/ The command /usr/local/bin/pdftohtml -c -fmt png -zoom 1.5 'path_to_file/file.pdf' 'path_to_file/file.html'

still fails

gbinow commented 8 years ago

Oh!! I'm very sorry!! I forgot to erase the my /usr/local/bin folder with the previous binaries. Now it works perfectly fine!

Thank you very very much! You're the best! :)

mgufrone commented 8 years ago

glad to be a help. 👍