mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +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
|
@ -140,6 +140,7 @@ class AnnotationElement {
|
|||
this.imageResourcesPath = parameters.imageResourcesPath;
|
||||
this.renderInteractiveForms = parameters.renderInteractiveForms;
|
||||
this.svgFactory = parameters.svgFactory;
|
||||
this.annotationStorage = parameters.annotationStorage;
|
||||
|
||||
if (isRenderable) {
|
||||
this.container = this._createContainer(ignoreBorder);
|
||||
|
@ -1450,6 +1451,7 @@ class AnnotationLayer {
|
|||
imageResourcesPath: parameters.imageResourcesPath || "",
|
||||
renderInteractiveForms: parameters.renderInteractiveForms || false,
|
||||
svgFactory: new DOMSVGFactory(),
|
||||
annotationStorage: parameters.annotationStorage,
|
||||
});
|
||||
if (element.isRenderable) {
|
||||
parameters.div.appendChild(element.render());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue