tonchik-tm / pdf-to-html

This PHP class can convert your pdf files to html using poppler-utils.
MIT License
54 stars 30 forks source link

Images from PDF not being embedded in HTML #15

Open DocWorks opened 5 years ago

DocWorks commented 5 years ago

Currently experiencing an issue with images when converting an uploaded PDF document to a HTML string. These are the settings: image When uploading a PDF like this however: image It results in this: image Obviously I don't want empty space, but rather a working picture of a dog (in this case at least) Any idea what might cause this and how to fix it?

I've already attempted:

But so far none of that has solved it.

DocWorks commented 5 years ago

Finally fixed this, apparently the file was being searched double encoded, resulting in spaces going to %20 and then going to %2520, which meant the image file couldn't be found, so adding this solved it: image