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 #19425 from calixteman/signature_save

[Editor] 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:
calixteman 2025-02-10 19:20:32 +01:00 committed by GitHub
commit e3cca6d513
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 459 additions and 17 deletions

View file

@ -461,13 +461,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({