PDFViewerFX
PDFViewerFX copied to clipboard
PDF.js not supported on some files
Hi,
I'm getting these errors with this file:
Exception in thread "JavaFX Application Thread" netscape.javascript.JSException: TypeError: undefined is not a function
at javafx.web/com.sun.webkit.dom.JSObject.fwkMakeException(JSObject.java:157)
at javafx.web/com.sun.webkit.WebPage.twkExecuteScript(Native Method)
at javafx.web/com.sun.webkit.WebPage.executeScript(WebPage.java:1524)
at javafx.web/javafx.scene.web.WebEngine.executeScript(WebEngine.java:981)
after googling, it seems the issue is about WebView not supporting requestAnimationFrame as in these cases: https://github.com/mozilla/pdf.js/issues/10523 https://github.com/mozilla/pdf.js/issues/10198
it seems there might be a workaround but not sure how to implement it in this case: https://stackoverflow.com/questions/7112401/requestanimationframe-undefined-in-ios-uiwebview