See https://bugzilla.mozilla.org/show_bug.cgi?id=1735738 for reference.
xfa,
            div,
            viewport: viewport.clone({ dontFlip: true }),
            annotationStorage,
            linkService: new SimpleLinkService(),
            intent: isPrint ? "print" : "display",
          });
          
          
          await resolveImages(div,  true);
          svg.appendChild(foreignObject);
          writeSVG(svg, ctx, resolve, reject);
        })
        .catch(reason => {
          reject(new Error(`rasterizeXfaLayer: "${reason?.message}".`));
        });
    });
  }
  return rasterizeXfaLayer;
})();
/**
 * @typedef {Object} DriverOptions
 * @property {HTMLSpanElement} inflight - Field displaying the number of
 *   inflight requests.
 * @property {HTMLInputElement} disableScrolling - Checkbox to disable
 *   automatic scrolling of the output container.
 * @property {HTMLPreElement} output - Container for all output messages.
 * @property {HTMLDivElement} end - Container for a completion message.
 */
/**