3

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.

Mir Mumtaz
  • 109
  • 2
  • 9

1 Answers1

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!