pdf.js你好世界的例子

时间:2017-07-29 19:35:02

标签: javascript pdf pdf.js

我从github克隆了pdf.js,当我运行http://localhost:8888/web/viewer.html时,它运行正常。但是,当我运行简单的hello world示例http://localhost:8888/examples/helloworld/index.html时,我在Chrome控制台中收到错误:

Uncaught (in promise) TypeError: PDFNetworkStream is not a constructor
    at eval (api.js:206)
    at <anonymous>

我正在运行gulp服务器,如示例中所述。

知道为什么这个简单的例子对我不起作用?

0 个答案:

没有答案