mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
47.09k stars 9.81k forks source link

Error occurred in rendering the page while previewing certain PDFs #18309

Closed ly269nva closed 1 week ago

ly269nva commented 1 week ago

Attach (recommended) or Link to PDF file here: test.pdf

Configuration:

Steps to reproduce the problem:

  1. start tomcat
  2. visit viewer.html with

What is the expected behavior? (add screenshot) show content of pdf

What went wrong? (add screenshot) image PDF.js v1.9.426 (build: 2558a58d) 信息:Cannot read properties of null (reading 'get') 堆栈:TypeError: Cannot read properties of null (reading 'get') at PartialEvaluator_hasBlendModes [as hasBlendModes] (http://localhost:8180/test/pdf/build/pdf.worker.js:16885:35) at http://localhost:8180/test/pdf/build/pdf.worker.js:29289:42 at async Promise.all (index 0) image

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension): image

ly269nva commented 1 week ago

the graphicState is null

Snuffleupagus commented 1 week ago

PDF.js version: PDF.js v1.9.426 (build: 2558a58)

That version is seven years old and thus obviously no longer supported, please make sure that you use an up-to-date version before reporting a bug or asking for help! Please find the latest releases at https://mozilla.github.io/pdf.js/getting_started/#download