mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Add an annotation storage in order to save annotation data in acroforms
This commit is contained in:
parent
d69fb446bf
commit
584902dbf8
13 changed files with 152 additions and 7 deletions
|
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue