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

Add the possibility to compress/decompress the signature data in order to store them in the logins storage in Firefox (bug 1946171)

This commit is contained in:
Calixte Denizet 2025-02-05 19:34:11 +01:00
parent b4a6b1ba0b
commit 6b95095e14
15 changed files with 459 additions and 17 deletions

View file

@ -460,13 +460,15 @@ const PDFViewerApplication = {
this.editorUndoBar = new EditorUndoBar(appConfig.editorUndoBar, eventBus);
}
const signatureManager = appConfig.addSignatureDialog
? new SignatureManager(
appConfig.addSignatureDialog,
this.overlayManager,
this.l10n
)
: null;
const signatureManager =
AppOptions.get("enableSignatureEditor") && appConfig.addSignatureDialog
? new SignatureManager(
appConfig.addSignatureDialog,
this.overlayManager,
this.l10n,
externalServices.createSignatureStorage()
)
: null;
const enableHWA = AppOptions.get("enableHWA");
const pdfViewer = new PDFViewer({