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

pdftex.js and pdftex-worker.js must be placed in root #27

Open
xylo04 opened this issue Apr 29, 2015 · 1 comment
Open

pdftex.js and pdftex-worker.js must be placed in root #27

xylo04 opened this issue Apr 29, 2015 · 1 comment

Comments

@xylo04
Copy link
Contributor

xylo04 commented Apr 29, 2015

Attempting to use texlive.js as a library without modification and also placing it in a vendor folder are currently not possible, because this line in pdftex.js:

var worker = new Worker("pdftex-worker.js");

seems to be relative to root. If possible, I'd like to see if that can be made relative to the calling script. As an alternative, perhaps the content of pdftex-worker.js can be inlined in pdftex.js.

@xylo04
Copy link
Contributor Author

xylo04 commented May 18, 2015

Based on this line in index.html, it looks like the intent at one time was to make the PDFTeX constructor take the worker path as an optional parameter. I'll go that direction.

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

No branches or pull requests

1 participant