mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 08:08:07 +02:00
Fetch binary CMap data in the worker-thread, when useWorkerFetch
is set
This patch uses the new option added in PR 12726 to *also* allow fetching binary CMap data directly in the worker-thread in browsers. Given that these changes remove the need to transfer data between threads for the default (browser) use-case, we can also revert the changes in PR 11118 since that simplifies the overall implementation.
This commit is contained in:
parent
248113bbf0
commit
d995f90183
5 changed files with 46 additions and 48 deletions
|
@ -19,7 +19,7 @@
|
|||
|
||||
const WAITING_TIME = 100; // ms
|
||||
const PDF_TO_CSS_UNITS = 96.0 / 72.0;
|
||||
const CMAP_URL = "../external/bcmaps/";
|
||||
const CMAP_URL = "/build/generic/web/cmaps/";
|
||||
const CMAP_PACKED = true;
|
||||
const STANDARD_FONT_DATA_URL = "/build/generic/web/standard_fonts/";
|
||||
const IMAGE_RESOURCES_PATH = "/web/images/";
|
||||
|
|
|
@ -4046,6 +4046,15 @@
|
|||
"lastPage": 1,
|
||||
"type": "eq"
|
||||
},
|
||||
{ "id": "mao-main_thread_fetch",
|
||||
"file": "pdfs/mao.pdf",
|
||||
"md5": "797093d67c4d4d4231ac6e1fb66bf6c3",
|
||||
"rounds": 1,
|
||||
"link": true,
|
||||
"lastPage": 1,
|
||||
"type": "eq",
|
||||
"useWorkerFetch": false
|
||||
},
|
||||
{ "id": "mao-text",
|
||||
"file": "pdfs/mao.pdf",
|
||||
"md5": "797093d67c4d4d4231ac6e1fb66bf6c3",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue