Add an annotation storage in order to save annotation data in acroforms

This commit is contained in:
Calixte Denizet 2020-07-22 13:55:52 +02:00
parent d69fb446bf
commit 584902dbf8
13 changed files with 152 additions and 7 deletions

View file

@ -38,6 +38,7 @@ class AnnotationLayerBuilder {
pdfPage,
linkService,
downloadManager,
annotationStorage,
imageResourcesPath = "",
renderInteractiveForms = false,
l10n = NullL10n,
@ -49,6 +50,7 @@ class AnnotationLayerBuilder {
this.imageResourcesPath = imageResourcesPath;
this.renderInteractiveForms = renderInteractiveForms;
this.l10n = l10n;
this.annotationStorage = annotationStorage;
this.div = null;
this._cancelled = false;
@ -73,6 +75,7 @@ class AnnotationLayerBuilder {
renderInteractiveForms: this.renderInteractiveForms,
linkService: this.linkService,
downloadManager: this.downloadManager,
annotationStorage: this.annotationStorage,
};
if (this.div) {
@ -124,6 +127,7 @@ class DefaultAnnotationLayerFactory {
createAnnotationLayerBuilder(
pageDiv,
pdfPage,
annotationStorage,
imageResourcesPath = "",
renderInteractiveForms = false,
l10n = NullL10n
@ -135,6 +139,7 @@ class DefaultAnnotationLayerFactory {
renderInteractiveForms,
linkService: new SimpleLinkService(),
l10n,
annotationStorage,
});
}
}