Merge pull request #16054 from Snuffleupagus/Driver-getDocument-cleanup

A little clean-up of the `getDocument` call in `test/driver.js`
This commit is contained in:
Tim van der Meij 2023-02-19 12:12:07 +01:00 committed by GitHub
commit 9fac676796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -457,7 +457,6 @@ class Driver {
this._log('Loading file "' + task.file + '"\n');
const absoluteUrl = new URL(task.file, window.location).href;
try {
let xfaStyleElement = null;
if (task.enableXfa) {
@ -471,11 +470,10 @@ class Driver {
}
const loadingTask = getDocument({
url: absoluteUrl,
url: new URL(task.file, window.location),
password: task.password,
cMapUrl: CMAP_URL,
standardFontDataUrl: STANDARD_FONT_DATA_URL,
disableRange: task.disableRange,
disableAutoFetch: !task.enableAutoFetch,
pdfBug: true,
useSystemFonts: task.useSystemFonts,