Gets an array of annotations container objects for all pages with a single call.
DocumentAnnotations.prototype.getAnnotations = function(createEmpty)
getAnnotations(createEmpty: boolean): JQueryPromise<AnnContainer>;
true to create and return an empty LEADTOOLS annotations container if the page does not have one originally, otherwise;
false to return null if the page does not have an original container.
A Promise object that may resolve successfully to an array of AnnContainer objects for each page. The user must use the value of AnnContainer.PageNumber to determine the page(s).
GetAnnotations and SetAnnotations can be used to get or set an array of annotations container objects for all pages with a single call. Since the annotations can be stored in a stand-alone file, calling these optimized methods can be a lot faster than iterating through each page and calling DocumentPage.GetAnnotations or DocumentPage.SetAnnotations multiple times.
The result array will contain an AnnContainer was false and the page does not have any annotations).
Each AnnContainer returned will have its AnnContainer.PageNumber property set to the 1-based page number of the page.
The LEADTOOLS Document Viewer library uses GetAnnotations to obtain the annotation container objects for all pages at once instead of calling individual DocumentPage.GetAnnotations when a new document is loaded in the viewer. And will call SetAnnotations passing any annotation container that has changed by the user instead of DocumentPage.SetAnnotations in preparations for sending the document to the converter for saving.
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.