Skip to content

Instantly share code, notes, and snippets.

@benvanderberg
Created July 18, 2020 00:17
Show Gist options
  • Select an option

  • Save benvanderberg/fe37addc6f8a0f75dc43f1b1e7fdb683 to your computer and use it in GitHub Desktop.

Select an option

Save benvanderberg/fe37addc6f8a0f75dc43f1b1e7fdb683 to your computer and use it in GitHub Desktop.
const list_of_annotations = [Annotation_1, Annotation_2];
previewFilePromise.then(adobeViewer => {
adobeViewer.getAnnotationManager().then(annotationManager => {
annotationManager.addAnnotations(list_of_annotations)
.then(() => console.log("Success"))
.catch(error => console.log(error));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment