mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
[Editor] Add a new dialog for the signature editor (bug 1945574)
This commit is contained in:
parent
d1f62509e5
commit
fa25ab9c13
16 changed files with 1596 additions and 66 deletions
10
web/app.js
10
web/app.js
|
@ -89,6 +89,7 @@ import { PDFThumbnailViewer } from "web-pdf_thumbnail_viewer";
|
|||
import { PDFViewer } from "./pdf_viewer.js";
|
||||
import { Preferences } from "web-preferences";
|
||||
import { SecondaryToolbar } from "web-secondary_toolbar";
|
||||
import { SignatureManager } from "web-signature_manager";
|
||||
import { Toolbar } from "web-toolbar";
|
||||
import { ViewHistory } from "./view_history.js";
|
||||
|
||||
|
@ -458,6 +459,14 @@ const PDFViewerApplication = {
|
|||
this.editorUndoBar = new EditorUndoBar(appConfig.editorUndoBar, eventBus);
|
||||
}
|
||||
|
||||
const signatureManager = appConfig.addSignatureDialog
|
||||
? new SignatureManager(
|
||||
appConfig.addSignatureDialog,
|
||||
this.overlayManager,
|
||||
this.l10n
|
||||
)
|
||||
: null;
|
||||
|
||||
const enableHWA = AppOptions.get("enableHWA");
|
||||
const pdfViewer = new PDFViewer({
|
||||
container,
|
||||
|
@ -467,6 +476,7 @@ const PDFViewerApplication = {
|
|||
linkService: pdfLinkService,
|
||||
downloadManager,
|
||||
altTextManager,
|
||||
signatureManager,
|
||||
editorUndoBar: this.editorUndoBar,
|
||||
findController,
|
||||
scriptingManager:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue