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

PDF.js not supported on some files #22

@maknon

Description

@maknon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions