Skip to content
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

Merged
merged 1 commit into from
Jun 12, 2017

Conversation

yurydelendik
Copy link
Contributor

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.

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.
Copy link
Contributor

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

@timvandermeij
Copy link
Contributor

Could you update this patch to resolve the conflict?


<script src="../../build/generic/build/pdf.js"></script>
<script src="../../node_modules/pdfjs-dist/pdf.js"></script>
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, thanks.

@timvandermeij timvandermeij merged commit c26e497 into mozilla:master Jun 12, 2017
@timvandermeij
Copy link
Contributor

timvandermeij commented Jun 12, 2017

Looks good. Thank you for fixing this!

movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
Adds gulp dist-install command; using pdfjs-dist package in examples.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants