mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +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
|
@ -238,7 +238,14 @@ class Page {
|
|||
});
|
||||
}
|
||||
|
||||
getOperatorList({ handler, sink, task, intent, renderInteractiveForms }) {
|
||||
getOperatorList({
|
||||
handler,
|
||||
sink,
|
||||
task,
|
||||
intent,
|
||||
renderInteractiveForms,
|
||||
annotationStorage,
|
||||
}) {
|
||||
const contentStreamPromise = this.pdfManager.ensure(
|
||||
this,
|
||||
"getContentStream"
|
||||
|
@ -301,7 +308,12 @@ class Page {
|
|||
if (isAnnotationRenderable(annotation, intent)) {
|
||||
opListPromises.push(
|
||||
annotation
|
||||
.getOperatorList(partialEvaluator, task, renderInteractiveForms)
|
||||
.getOperatorList(
|
||||
partialEvaluator,
|
||||
task,
|
||||
renderInteractiveForms,
|
||||
annotationStorage
|
||||
)
|
||||
.catch(function (reason) {
|
||||
warn(
|
||||
"getOperatorList - ignoring annotation data during " +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue