mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
[Editor] Add a first test to test the new alt text flow
This commit is contained in:
parent
b6b99a7b75
commit
debcb2267e
3 changed files with 267 additions and 7 deletions
15
web/app.js
15
web/app.js
|
@ -385,6 +385,21 @@ const PDFViewerApplication = {
|
|||
parseInt(params.get("spreadmodeonload"))
|
||||
);
|
||||
}
|
||||
if (params.has("enablealttext")) {
|
||||
AppOptions.set("enableAltText", params.get("enablealttext") === "true");
|
||||
}
|
||||
if (params.has("enableupdatedaddimage")) {
|
||||
AppOptions.set(
|
||||
"enableUpdatedAddImage",
|
||||
params.get("enableupdatedaddimage") === "true"
|
||||
);
|
||||
}
|
||||
if (params.has("enableguessalttext")) {
|
||||
AppOptions.set(
|
||||
"enableGuessAltText",
|
||||
params.get("enableguessalttext") === "true"
|
||||
);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue