-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds gulp dist-install command; using pdfjs-dist package in examples. #8401
Conversation
43dc75a
to
c80ef4b
Compare
README.md
Outdated
@@ -106,6 +106,8 @@ The repository contains a hello world example that you can run locally: | |||
|
|||
+ [examples/helloworld/](https://github.com/mozilla/pdf.js/blob/master/examples/helloworld/) | |||
|
|||
More examples can be found at the examples folder. Some of them are using the pdfjs-dist package, which can be built and installed in this repo direcotry via `gulp dist-install` command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: direcotry
should be directory
Could you update this patch to resolve the conflict? |
c80ef4b
to
e1fc82d
Compare
examples/learning/helloworld.html
Outdated
|
||
<script src="../../build/generic/build/pdf.js"></script> | ||
<script src="../../node_modules/pdfjs-dist/pdf.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should end with /build/pdf.js
instead. Now it throws ReferenceError: PDFJS is not defined
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks.
e1fc82d
to
a18caa7
Compare
Looks good. Thank you for fixing this! |
Adds gulp dist-install command; using pdfjs-dist package in examples.
It will simplify example usage (e.g. now examples can be copied and used as is in the custom project that has pdfjs-dist installed) and avoid git-tag error when
gulp dist
run.