Annotations options
You can use the annotation methods to determine whether annotations are displayed and to
configure annotations settings. These methods are disabled by default unless the
annotationJavaScriptExtensions parameter is set to
true.
setAnnotateEdit(Boolean)
Determines whether the user can modify editable annotations and add new annotations by using the annotations toolbar.
isAnnotateEdit()
Returns true if the Annotations toolbar is available to users, false if the Annotations toolbar is not available.
setAnnotationFile(String filename)
Sets the annotation file. The string value defines the URL from which the annotation data is retrieved on document load. You must call this method before you call any of the methods to open a document.
setAnnotationSavePost(String path)
Specifies the location of a server-side object such as CGI, EXE, ASP, or JSP that saves annotations that the viewer created.
setAnnotationSaveServlet(String path)
Specifies the location of a servlet that handles the saving of annotations that the viewer creates.
isShowAnnotations()
Returns true if annotations are allowed to be displayed or false if annotations are not allowed to be displayed.
reloadAnnotations()
Calling this method forces IBM Daeja ViewONE to reload the annotations from the source and to redraw the image on screen.
saveAnnotations()
Saves the annotations by using the server-side annotations save object that was specified by using the relevant HTML parameters or JavaScript methods.
Edit, add, and find annotations
Use APIs to edit, add, and find annotations.
Toolbars, buttons, and menus
Use these methods to determine the annotation options in the toolbars, buttons, and menus.