0

I am using pdftohtml tool to convert pdfs to html using the following command:
pdftohtml -s -c SOURCE_FILE_NAME
which results in the following error:

dyld: Library not loaded: /usr/local/opt/openjpeg/lib/libopenjpeg.5.dylib
  Referenced from: /usr/local/bin/pdftohtml
  Reason: image not found
Trace/BPT trap: 5

I haven't managed to find outwhy this is happening thus far. Can anyone shed any light on this?

Dark Star1
  • 6,986
  • 16
  • 73
  • 121
  • It may you do not have this library `libopenjpeg.5.dylib` or the executable file have no reference to it. – Shakiba Moshiri Jul 10 '17 at 15:11
  • Aye. It seems that my library is an older version. Don't suppose you know which packages include this on OSX? – Dark Star1 Jul 10 '17 at 16:37
  • try `ldd /usr/local/bin/pdftohtml` to see it refers to which libraries and **you have it or not** – Shakiba Moshiri Jul 10 '17 at 16:52
  • **"otool -L"** instead of **ldd** on osx. In anycase I got this: https://paste.fedoraproject.org/paste/pT35bYGBcWNId5Ec79TzZg – Dark Star1 Jul 10 '17 at 17:32
  • this line: `/usr/local/opt/openjpeg/lib/libopenjpeg.5.dylib (compatibility version 5.0.0, current version 1.5.2)` I think your version of this, is old. So find ti and install the latest version – Shakiba Moshiri Jul 11 '17 at 09:31

0 Answers0