Prograatically annotating large documents - corrupts the document

New Here ,
May 30, 2021 May 30, 2021

Copy link to clipboard

Copied

I am trying to programatically annotate a large document (more than 400 pages). Each page will be annotated with an annotation. If I try to annotation more than 200 pages I the document starts showing a white screen and the following errors appear in the console. I am using windows 10 and IE Edge browser and am linking to the current version of the Embedded Javacript API.

My code is as follows

 

for (var ind=0;ind<200;ind++) {
addAnnotationToList(ind,list_of_annotations);

}

function addAnnotationToList(pageIndex,annotationList) {
var annotation = {
"@context": [
"https://www.w3.org/ns/anno.jsonld",
"https://comments.acrobat.com/ns/anno.jsonld"
],
"type": "Annotation",
"id": "annotation_" + pageIndex,
"bodyValue": "Caveat Application Form",
"motivation": "commenting",
"stylesheet": {
"type": "CssStylesheet",
"value": "body-value-css { font: 23px Helvetica; color: #EB9694}"
},
"target": {
"source": "77c6fa5d-6d74-4104-8349-657c8411a834",
"selector": {
"node": {
"index": pageIndex
},
"subtype": "freetext",
"boundingBox": [
0,
0,
512,
52
],
"styleClass": "body-value-css",
"type": "AdobeAnnoSelector"
}
},
"creator": {
"type": "Person",
"name": "John Smith"
},
"created": "2021-01-20T14:45:37Z",
"modified": "2021-01-20T14:45:37Z"
};
annotationList.push(annotation);
}

 

myannotationManager.addAnnotations(list_of_annotations)
.then(() => console.log("Success"))
.catch(error => console.log(error));

 

 

Capture1.JPGCapture2.JPG

Views

885

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 31, 2021 May 31, 2021

Copy link to clipboard

Copied

Sorry that you are facing this issue. We are looking into it and will try to resolve it soon.

It would be of great help if you can share the version of the browser where you are trying this out and also the sample PDF, if possible.

 

Thanks!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 31, 2021 May 31, 2021

Copy link to clipboard

Copied

Browser: Microsoft EdgeVersion 91.0.864.37 (Official build) (64-bit)
Any pdf with more than 200 pages will do - please find attached the pdf I used

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 09, 2021 Jun 09, 2021

Copy link to clipboard

Copied

LATEST

Thanks for sharing the details. We are looking into the issue and will let you know when the fix is rolled out.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines