I am trying to convert pdf to html in php using mgufrone library(https://github.com/mgufrone/pdf-to-html). I run this in my mac it's working alright. But when I run in centos server, the .html file is created blank inside /vendor/gufy/pdftohtml-pdf/output folder. In my mac local multiples files are created inside /output folder. But in server only a single file is created with empty content. Please help.
Asked
Active
Viewed 3,058 times
1 Answers
4
Herein lies the problem:
sudo yum install poppler-utils
That installs an old version (0.12.4) which does not have pdftohtml command options like "-s" and "-fmt".
Go to this page https://medium.com/@jakebathman/building-poppler-utils-for-centos-6-5-really-e52eccffc6ae to guide you on how to get a later version of poppler-utils. I installed https://poppler.freedesktop.org/poppler-0.22.5.tar.gz instead of 0.13.4 as instructed.
All the best!

Gachara Thomi
- 51
- 3
-
This worked for me! for our AWS Linux, production environment. Thanks. – mayorsanmayor Dec 06 '19 at 09:12
-
I'm glad to hear that :) – Gachara Thomi Dec 07 '19 at 10:56