Create an OptionalContentConfig
-instance once for each task, when running the reference test-suite
This avoids the need to make a round-trip to the worker-thread for *every* single page that's being tested, which should thus be more efficient.
This commit is contained in:
parent
ef5a5c142a
commit
9ba5f9fa34
@ -397,6 +397,8 @@ var Driver = (function DriverClosure() {
|
||||
loadingTask.promise.then(
|
||||
doc => {
|
||||
task.pdfDoc = doc;
|
||||
task.optionalContentConfigPromise = doc.getOptionalContentConfig();
|
||||
|
||||
this._nextPage(task, failure);
|
||||
},
|
||||
err => {
|
||||
@ -605,6 +607,7 @@ var Driver = (function DriverClosure() {
|
||||
canvasContext: ctx,
|
||||
viewport,
|
||||
renderInteractiveForms: renderForms,
|
||||
optionalContentConfigPromise: task.optionalContentConfigPromise,
|
||||
};
|
||||
if (renderPrint) {
|
||||
const annotationStorage = task.annotationStorage;
|
||||
|
Loading…
x
Reference in New Issue
Block a user