1

I have created a pdf file. In local, it is working properly and image is displayed in pdf. But in server image is not displayed. I have checked image path and it is perfect. I have attached screen shot which shows Warning: Failed to load 'image_path' (ignore).

Absolute path is like 'https://example.com/app/img/xyz.jpg'.

Example Image

Mad Coder
  • 117
  • 14
Jigar Pancholi
  • 1,209
  • 1
  • 8
  • 25

2 Answers2

0

That's not actually a problem with your code, but with a missing dependency of wkthtmltopdf.

If you are using Debian, this can be solved by installing the libssl1.0-dev package.

For more information, please check this issue in the wkhtmltopdf repo.

Alex
  • 86
  • 1
  • 4
0

You should try to give absolute path like in Linux home/project/images/abc.jpg.