Problem with WebViewer Initialization

Product:

Product Version:

Please give a brief summary of your issue:
I tried to use PDFTron viewer using code from sample and I got a few error messages, and the initialDoc isn’t loading.

Please describe your issue and provide steps to reproduce it:
I tried to use PDFTron viewer using code from sample and I got a few error messages, and the initialDoc isn’t loading. I tried to use documents from url, local documents inside my project folder and absolute path to the document. EveryTime I get the same error message.

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

This is how viewer is looking:

And these are error messages which I get:

Hi there,

We noticed the following error within your console, see screen shot below.

The error is caused by mime types not being defined on your server, you can click on the link below to resolve your issue.

http://r.pdftron.com/mimetypes

Regards,
Aaseef Shaikh

Hi,

Yeah, but I’m working on Electron app, this is an offline app.

Regards,

Hi there,

Thank you for the response.

We have this electron guide, I ran the sample from our guide and was unable to reproduce. You can use the guide and sample from the link below, hopefully that can help in troubleshooting your issue.

Guide with sample
https://www.pdftron.com/documentation/web/get-started/electron/

Please let me know if you still have issues or questions.

Regards,
Aaseef