Loading PNG's not working after upgrading to 8.7.0

WebViewer Version: 8.7.0

Do you have an issue with a specific file(s)? Yes
Can you reproduce using one of our samples or online demos? No
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:
(Think of this as an email subject)
Loading a PNG file throws an error in the loadDocument call.

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
I’m currently upgrading out WebViewer version from 7.2.0 to 8.7.0. Our front end is in typescript/React. Previously, PNG files loaded without any problem. After upgrading however, I get the below error.

webviewer-core.min.js:2383 Uncaught (in promise) Error: Failed to load image
    at e.onerror (webviewer-core.min.js:2383:454)

Any help would be appreciated. Is there any extra logic needed in the latest version to handle loading images? Here’s the call that fails:

webViewer.Core.documentViewer.loadDocument(data.source, {
	docId: data.id,
	filename: data.name,

Please provide a link to a minimal sample where the issue is reproducible:

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:


Hi @nick.herbert,

Thanks for reaching out with this report. This was an issue we fixed for 8.6 but it was not ported to 8.7. I have now ported the fix, which should be available in our nightly stable builds in the next 24 hours.

In the meantime you can use 8.6.1, which will have this fix.

Best Regards,
Armando Bollain
Software Developer
PDFTron Systems, Inc.

1 Like

Glad to hear - thank you for your response.

Hi, do you know when this fix will be available in a stable release build (i.e. not a nightly build)? We’ve had to downgrade to 8.4.1 because this is the last stable release that actually works with PNGs/JPGs. I tested 8.7.0, 8.6.1, 8.6.0 and 8.5.0 and none would load image png/jpg image files.

Hello @nick.herbert,

All our stable nightly builds are safe for production. Our next releases, 8.8. is scheduled for the end of this month.

Best Regards,
Armando Bollain
Software Developer
PDFTron Systems, Inc.

1 Like