-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Init PDFWorker via MesssagePort. #8107
Conversation
/botio test |
From: Bot.io (Linux)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 1 Live output at: http://107.21.233.14:8877/8fc414c822c7a13/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @yurydelendik received. Current queue size: 1 Live output at: http://54.215.176.217:8877/2a48fbff731d9b0/output.txt |
From: Bot.io (Windows)SuccessFull output at http://54.215.176.217:8877/2a48fbff731d9b0/output.txt Total script time: 21.72 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/8fc414c822c7a13/output.txt Total script time: 26.55 mins
|
/botio-linux preview |
From: Bot.io (Linux)ReceivedCommand cmd_preview from @timvandermeij received. Current queue size: 0 Live output at: http://107.21.233.14:8877/640d58b5b85ad34/output.txt |
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/640d58b5b85ad34/output.txt Total script time: 2.16 mins Published |
Looks good, thank you! |
The wiki page has been updated as well. |
@timvandermeij Are there usage notes for this? I checked the wiki but I didn't find the information. Based on the source code, I think I'm supposed to manually init the worker myself and then pass it as an argument to |
@jedd-ahyoung see external/dist/webpack.js for usage example with webpack -- webpack loader takes care of the worker initialization (and it's out of control of the PDF.js). You can wrap existing worker with PDFWorker object and pass it to the PDF.js. |
Init PDFWorker via MesssagePort.
Webpack people can use 'pdfjs-dist/webpack' module for PDF.js autoconfiguration.
Fixes #7612
Addresses #7683