mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Group the evaluatorOptions
on the main-thread, when sending "GetDocRequest"
Rather than sending all of these parameters individually and then grouping them together on the worker-thread, we can simply handle that in the API instead.
This commit is contained in:
parent
447915af9d
commit
c84b717773
2 changed files with 14 additions and 24 deletions
|
@ -405,19 +405,7 @@ class WorkerMessageHandler {
|
|||
|
||||
ensureNotTerminated();
|
||||
|
||||
const evaluatorOptions = {
|
||||
maxImageSize: data.maxImageSize,
|
||||
disableFontFace: data.disableFontFace,
|
||||
ignoreErrors: data.ignoreErrors,
|
||||
isEvalSupported: data.isEvalSupported,
|
||||
isOffscreenCanvasSupported: data.isOffscreenCanvasSupported,
|
||||
fontExtraProperties: data.fontExtraProperties,
|
||||
useSystemFonts: data.useSystemFonts,
|
||||
cMapUrl: data.cMapUrl,
|
||||
standardFontDataUrl: data.standardFontDataUrl,
|
||||
};
|
||||
|
||||
getPdfManager(data, evaluatorOptions, data.enableXfa)
|
||||
getPdfManager(data, data.evaluatorOptions, data.enableXfa)
|
||||
.then(function (newPdfManager) {
|
||||
if (terminated) {
|
||||
// We were in a process of setting up the manager, but it got
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue