diff --git a/test/driver.js b/test/driver.js index ddc89ce769bf9a..466e6f1aa98b1f 100644 --- a/test/driver.js +++ b/test/driver.js @@ -397,6 +397,8 @@ var Driver = (function DriverClosure() { loadingTask.promise.then( doc => { task.pdfDoc = doc; + task.optionalContentConfigPromise = doc.getOptionalContentConfig(); + this._nextPage(task, failure); }, err => { @@ -603,6 +605,7 @@ var Driver = (function DriverClosure() { canvasContext: ctx, viewport, renderInteractiveForms: renderForms, + optionalContentConfigPromise: task.optionalContentConfigPromise, }; var completeRender = function (error) { // if text layer is present, compose it on top of the page