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:
commit
2d773cb773
20 changed files with 656 additions and 14 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue