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

Different directory for worker and bundle? #84

Closed
prionkor opened this issue Oct 11, 2017 · 2 comments
Closed

Different directory for worker and bundle? #84

prionkor opened this issue Oct 11, 2017 · 2 comments
Assignees
Labels
question Further information is requested
Milestone

Comments

@prionkor
Copy link

I am trying to use this library but unfortunately it is looking for the bundle and worker file at the root of the site instead of my custom directory /js/dist/ is there any way of set the path for worker and bundle js files?

@wojtekmaj
Copy link
Owner

Hey @prionkor!
Not really at this point, I'm afraid. That would only be possible if I manage to create a custom entry file that allows you to pass custom, even more advanced config to PDF.js. If you need it right now, I'd suggest creating a custom entry file on your own based on some that already exist, with setting proper parameters to PDF.js like so. The parameter you're looking for is workerSrc.

@wojtekmaj wojtekmaj self-assigned this Oct 11, 2017
@wojtekmaj wojtekmaj added the question Further information is requested label Oct 11, 2017
@wojtekmaj wojtekmaj added this to the 2.3.0 milestone Oct 15, 2017
@wojtekmaj
Copy link
Owner

Hey @prionkor,
support for custom settings have just landed in v2.3.0. Check it out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants