Webviewer iframe deprecation warning in v10.2

I have read that you plan to deprecate the Webviewer’s iframe constructor in a future release (Apryse Documentation | Documentation). When we did a simple test to replace the iframe constructor with the new Web Component constructor, we noticed some styling impact but also a significant performance impact. So we were wondering when you are planning to deprecate and stop support for the iframe implementation.

I have also noticed that the following error is thrown since @pdftron/webviewer version 10.2:

Refused to apply style from 'http://localhost:4202/lib/ui/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

The Webviewer iframe’s index.html still contains a reference to a style.css file, but that file is no longer present in v10.2, resulting in the above error with the iframe view. This error is also thrown with the Web Component view.

1 Like

Hi, this will be fixed in the next patch release. Sorry for the inconvenience!

1 Like

Thanks. Do you also have some information regarding when the Webviewer’s iframe support will be deprecated as mentioned on this documentation page: Apryse Documentation | Documentation?

Good day,

I saw this thread and I would also like to ask if there is a roadmap when iframe support will be fully deprecated? We’re currently using 10.8 in production and we would like to know how soon should be start adapting to WebComponent mode.

Thank you!

Hello Rafael,

We have no plans to deprecate the iframe option at this time. We recently released WebViewer v11 which uses web component as the default option, but you can easily opt to use the iframe if you prefer. You can read more at Running WebViewer as a Web Component | Apryse documentation.

Best Regards,
Darian