1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00

Merge pull request #19110 from ryzokuken/autolink-demo

Enable automatic URL linking (bug 1019475)
This commit is contained in:
calixteman 2025-02-06 16:53:48 +01:00 committed by GitHub
commit 2d773cb773
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 656 additions and 14 deletions

View file

@ -354,6 +354,7 @@ const PDFViewerApplication = {
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("TESTING")) {
Object.assign(opts, {
enableAltText: x => x === "true",
enableAutoLinking: x => x === "true",
enableFakeMLManager: x => x === "true",
enableGuessAltText: x => x === "true",
enableUpdatedAddImage: x => x === "true",
@ -502,6 +503,7 @@ const PDFViewerApplication = {
abortSignal: this._globalAbortController.signal,
enableHWA,
supportsPinchToZoom: this.supportsPinchToZoom,
enableAutoLinking: AppOptions.get("enableAutoLinking"),
});
this.pdfViewer = pdfViewer;