Closed OilPrince closed 2 years ago
Steps to reproduce the problem:
In general please note https://github.com/mozilla/pdf.js/blob/master/.github/CONTRIBUTING.md (emphasis mine):
If you are developing a custom solution, first check the examples at https://github.com/mozilla/pdf.js#learning and search existing issues. If this does not help, please prepare a short well-documented example that demonstrates the problem and make it accessible online on your website, JS Bin, GitHub, etc. before opening a new issue or contacting us in the Matrix room -- keep in mind that just code snippets won't help us troubleshoot the problem.
5. Open web page(ex:
~/examples/components/pageviewer.html, ~/examples/mobile-viewer/viewer.html) in Tomcat
Those examples are intended for the "viewer components", which are distributed through the pdfjs-dist
repository; please refer to https://github.com/mozilla/pdfjs-dist/tree/master/web
(Hence the releases found at https://mozilla.github.io/pdf.js/getting_started/#download cannot be used together with the mentioned examples.)
Those examples are intended for the "viewer components", which are distributed through the pdfjs-dist repository; please refer to https://github.com/mozilla/pdfjs-dist/tree/master/web (Hence the releases found at https://mozilla.github.io/pdf.js/getting_started/#download cannot be used together with the mentioned examples.)
I just stumbled into the same pit and I can't really say I understand what the difference is between the releases and the viewer components
?
It might also be worth mentioning that there no longer is any pdfjs-dist
package within node_modules
.
I can see now that there are two distinct repos, pdf.js and pdfjs-dist, but the version of pdf.js inside pdfjs-dist seems very old.
Attach (recommended) or Link to PDF file here: compressed.tracemonkey-pldi-09.pdf
Configuration:
Steps to reproduce the problem:
~/examples/components/pageviewer.html, ~/examples/mobile-viewer/viewer.html) in TomcatWhat is the expected behavior? (add screenshot) The web page(
~/examples/components/pageviewer.html, ~/examples/mobile-viewer/viewer.html) works properly!What went wrong? (add screenshot) Where is js relating [pdfjsViewer]? I can't find 'pdfjsViewer'
How do example HTMLs work without errors?
I look forward to a good answer.