Participant
April 21, 2022
Question
Embed API: annotationManager.getAnnotations results in "Invalid time value"
- April 21, 2022
- 0 replies
- 457 views
I recieve an "Uncaught RangeError: Invalid time value at Date.toISOString (<anonymous>) at createAnnotationObject in AdobeDCViewApp.js", when trying to read existing annotaions from a document like this:
adobeViewer.getAnnotationManager().then(annotationManager => {
annotationManager.setConfig(customConfigFlags);
const filter = { pageRange: { startPage: _startPage, endPage: _endPage } }
const list_of_annotations = annotationManager.getAnnotations(filter)
.then (result => {
console.log(result);
})
.catch(error => {
console.log(error);
});
});
Any suggestions as to what I am doing wrong?
