You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try running the code mentioned in an older version of the example docs: // The workerSrc property shall be specified. PDFJS.workerSrc = '//mozilla.github.io/pdf.js/build/pdf.worker.js';
What is the expected behavior? (add screenshot)
PDF should load with the new version of the library.
What went wrong? (add screenshot)
PDF does not load. Instead, we get a console error that says PDFJS is not defined. Backward compatibility is broken on a minor version upgrade.
Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):
The text was updated successfully, but these errors were encountered:
Thanks for reporting this. I am experiencing the same console error as explained above. When I load version 2.0.402 instead the console error disappears.
[...] Backward compatibility is broken on a minor version upgrade.
That's not really accurate here, since there was a major version increase previously (from 1.x.y to 2.x.y), which should suggest that backwards incompatible changes were made.
Please refer to e.g. #9385 (comment) and #9385 (comment) for additional details.
chirag64
changed the title
Backward compatibility broken from 2.0.402 -> 2.0.419
Backward compatibility broken from 2.0.402 -> 2.0.419. PDFJS is not defined
Mar 4, 2018
Attach (recommended) or Link to PDF file here:Configuration:
Web browser and its version: N/AOperating system and its version: N/AIs a browser extension: NoSteps to reproduce the problem:
// The workerSrc property shall be specified.
PDFJS.workerSrc = '//mozilla.github.io/pdf.js/build/pdf.worker.js';
What is the expected behavior? (add screenshot)
PDF should load with the new version of the library.
What went wrong? (add screenshot)
PDF does not load. Instead, we get a console error that says
PDFJS is not defined
. Backward compatibility is broken on a minor version upgrade.Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):The text was updated successfully, but these errors were encountered: