Prizm® Viewer provides robust support for annotating images:
- Annotations for images on a local hard drive or network drive
- Web-based annotations (supported by a Prizm Annotation Server)
Refer to the Annotations topic for details on working with annotations.
Only embedded TIFF and PDF annotations that map to Rectangle, Ellipse, Highlight, Line, Stamp, Text, Polyline, Polygon, and Freehand annotations will be loaded; all other annotation types are ignored. |
When annotation-enabling a web application using Prizm Viewer, there are several items that need to be addressed:
- Preferences for loading annotations from a web server
- Preferences for support of Embedded PDF or TIFF files
- Preferences for showing and/or editing annotations
- Mappings for the annotation server(s)
- Prizm Annotation Server is available
Setting Annotation Settings in a Web Application via HTML
In the Object/Embed tag, you can set the annotation settings: AnnotationServers, AnnotateFromInternet, AnnotateImportEmbedded, InitialShowAnnotations, InitialEditAnnotations, ShowAnnotations, and EditAnnotations.
HTML Example | Copy Code |
---|---|
<HTML> <HEAD> <TITLE>Annotation Settings</TITLE> </HEAD> <BODY> <OBJECT ID="PrizmControl" CLASSID=" CLSID:7A2633F0-33D5-4F5E-93BE-74ACBEE7F7EA" height="100%" width="100%"> <PARAM NAME="SRC" VALUE="images/morning-coffee.jpg"/> <PARAM NAME="AnnotationServers" VALUE="<http://www.myserver.com></PrizmAnnotServer.aspx>"/> <PARAM NAME="AnnotateFromInternet" VALUE ="true" /> <PARAM NAME="InitialShowAnnotations" VALUE="true" /> <PARAM NAME="InitialEditAnnotations" VALUE="true" /> <PARAM NAME="AnnotateImportEmbedded" VALUE="false" /> </OBJECT> </BODY> </HTML> |
Setting Annotation Settings in a Web Application via a List File
In the Prizm List File, you can set the annotation settings: AnnotationServers, AnnotateFromInternet, AnnotateImportEmbedded, InitialShowAnnotations, InitialEditAnnotations, ShowAnnotations, and EditAnnotations.
List File Example | Copy Code |
---|---|
<?xml version="1.0" encoding="utf-8"?> <PrizmViewerListFile AnnotateFromInternet=”true” AnnotateFromLocal=”false” AnnotateImportEmbedded=”false” InitialShowAnnotations=”false” InitialEditAnnotations=”true”> <AnnotationServerList> <AnnotationServer ImageHostName = http://InsertAnnotationHostName AnnotationServerURL= "/InserLocationOnHost/InsertServerName.aspx"/> </AnnotationServerList> <ImageFileList> <ImageFile FileURL="Ccitt.tif"/> <ImageFile FileURL="accuracy.pdf"/> </ImageFileList> </PrizmViewerListFile> |
The preference settings for annotations are also available as properties that can be set within the user preferences of the Prizm Viewer application. For more information on user preferences, see the Accusoft.PrizmViewer10.User.chm help file. |
Prizm Annotation Server Availability
Before Prizm can load and save annotations for web-based images, you must provide an annotation server that Prizm Viewer uses to load and save annotations. The Prizm Annotation Server (SDK) includes two working sample versions of Prizm Annotation Server; one using ASP.NET technology, the other using Java Server Pages (JSP) technology. Go to the Accusoft website for information on downloading Prizm Annotation Server.
To help get you started, you can use one of the sample annotation servers included in the Prizm Annotation Server SDK. You only need to deploy one of the samples, modifying the appropriate configuration settings, and you are able to start annotating your web-based images. For more information about the sample annotation servers, see the Accusoft.PrizmViewer10.AnnotationServer.chm help file.