Init PDFWorker via MesssagePort.

This commit is contained in:
Yury Delendik 2017-02-24 13:33:18 -06:00
parent cada411af4
commit 51767d63fe
5 changed files with 52 additions and 4 deletions

View file

@ -160,6 +160,12 @@
*/
PDFJS.workerSrc = (PDFJS.workerSrc === undefined ? null : PDFJS.workerSrc);
/**
* Defines global port for worker process. Overrides workerSrc and
* disableWorker setting.
*/
PDFJS.workerPort = (PDFJS.workerPort === undefined ? null : PDFJS.workerPort);
/**
* Disable range request loading of PDF files. When enabled and if the server
* supports partial content requests then the PDF will be fetched in chunks.