Skip to content
This repository has been archived by the owner on Aug 15, 2021. It is now read-only.

PDF.js not supported on some files #22

Open
maknon opened this issue Aug 3, 2021 · 0 comments
Open

PDF.js not supported on some files #22

maknon opened this issue Aug 3, 2021 · 0 comments

Comments

@maknon
Copy link

maknon commented Aug 3, 2021

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:
mozilla/pdf.js#10523
mozilla/pdf.js#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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant