Web viewer fails to load image

WebViewer Version: 8.6.0

Do you have an issue with a specific file(s)? Yes
Can you reproduce using one of our samples or online demos? Yes
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? No
Is your issue related to annotations? No

Please give a brief summary of your issue:

Image viewer fails when trying to load images other than the provided samples

Please describe your issue and provide steps to reproduce it:

  1. Open the sample / demo viewer at PDFTron WebViewer Demo: JavaScript PDF Viewer Demo
  2. Choose a basic PNG or JPEG file, e.g. from https://filesamples.com/formats/png
  3. Popup appears with message: “Failed to load image”

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:


Thank you for reporting this issue. We are looking into this issue.

Hi Andre
It looks like WebViewer getting a 403 HTTP error, it may be that server is not allowing to download the image. Maybe this image hosting server, there are server rules that prevent accessing images like that.

I noticed the error message as well, but I don’t think that’s the problem.
Just try the same file by downloading it to your computer first, and then uploading it manually to the viewer. Same error.
And I tried with multiple images of my own (png and jpg(, always resulting in this error.

@Sardor_Isakov any news on this issue? Thanks!