The tables in this section contain information on custom object and embed tags, directives, and parameters that can be used as either object/embed tags or directives. Review the information within each table, and the sections on Creating HTML and Creating List Files before using tags or directives for Prizm Viewer customization. Examples of how to use the object/embed tag parameters and list file directives are located at the end of this section.
Before coding custom configurations, you will want to review the information in at least two of the tables. The Custom Embed/Object Tag table below contains parameters that can be used to override the default actions of the Prizm Viewer. The table labeled Parameter-Directve contains tags that can be used as either object/embed tags or directives. All of the parameters in these tables are optional.
CAUTION
INITDISPLAY, ZOOMAREA, and ZOOMABSOLUTE are mutually exclusive parameters since each describes a different way of scaling and displaying the image. Do not use them together in the same <EMBED> or <OBJECT> statement.
Directives are special instructions that can be added to image list files. Directives always begin with a pound sign (#). Directives are active for any image references that sequentially follow them in a List File until a new directive replaces the current directive.
For a comprehensive listing of directives available in the Prizm Viewer, you will need to consult two tables. The following table contains valid Directives that can only be used within List Files. For additional items that can used as directives, see the table labeled Parameter-Directive Items listed in the Parameter-Directive table can be used as object/embed tags or directives.
| Directive | Value | Description |
|---|---|---|
| #EndURL | URL | Specifies an HTML page to be loaded when printing has completed
or is canceled. For Print (image/x-pzm) and Batch Download (image/x-list-export) list files. |
| #ExportName | filename | This is the name to be used when saving the file in the image
reference that immediately follows the ExportName directive.
The file is saved to the hard drive. The file name can have
up to 128 characters. The file name specified cannot have any
path information in it the hard drive. For Batch Download list files (image/x-list-export). |
| #FontSize=nn | nn | This directive defines the font size to be used when
printing subsequent headers and footers. The default
font size is 8 point. Valid values for the font size
are 8, 9, 10, 12, 14, 16, 18 or 20. For Image (image/x-lst; image/x-list) and Print list files (image/x-pzm). |
| #Group | Designates the beginning of a group of files that must
be downloaded as a group. If any file fails to download, no files are
downloaded and an error message is issued; any files already downloaded
are deleted. The Group directive applies to all image references that
follow it. You can specify multiple groups in one list file. When the
Viewer encounters a Group directive, it starts a new group that includes
all image references until it reaches the end of the list file or encounters
another Group directive. For Batch Download list files. |
|
| #n-up | command | This directive defines when the beginning and end of N-up
printing should be. Valid commands are start and stop. If
N-up printing is enabled, two A-size images will print on a single B-size
sheet (11" x 17"). Four A-size images (as defined above) will print on
a single C-size sheet (17" x 22"). Two B-size images will print on a single
C-size sheet. By using start and stop commands, you can
force the Prizm Viewer to print specific numbers of pages. Any orientation
preferences will be ignored; the Viewer will orient the pages for best
fit. Following is a list of ranges for image size:A-Size: 200-266 X 270-310 mm For Print list files. |
| #PageCNT | number of pages | Page numbering has been changed and this directive is no longer used. |
| #Page | page range | This directive allows you to specify a range of images within a multi-page image file to be part of a printable set of pages. Page range specifies the pages to be included in the printable pages. It can take one of these forms: "1", "1,2", "1-3", "1-3,5", "1,3,5" and so on. If this directive is used, all pages contained in the multi-page image file that are not specified in the directive are NOT considered part of the printable set. This directive is only applied to the next image in the list. |
The parameters in the following table can be used as either object/embed tags or directives. If you use the parameter as a directive, it must start with a pound sign (#). Depending on your project, you may need other Object/Embed tags (see the Custom Object/Embed Tag Parameters table) or Directives (see the Directives table).
| Name | Values | Description |
|---|---|---|
| SaveAsFunction |
true/false |
This tag enables or disables all Save As functionality
as related to saving images. When disabled, related buttons and menus will
still be displayed, but they will not be functional. In addition, when set
to disabled, this menu item is also disabled: Save Image As-->Save Image
Locally. The default is enabled. |
| SaveAnnSilent |
true/false |
When enabled, this flag hides the dialogs that prompt to save annotations that have changed and changes are saved automatically. The "prompt to save" dialogs typically appear when an annotation is created or changed and then the Next/Previous page button (on the Prizm Viewer toolbar) or the Back button (on the browser toolbar) is pressed.
The default is OFF. |
| ExportFunction |
true/false disable/enable disabled/enabled yes/no on/off 1/0 |
This tag enables or disables all Export functionality.
This includes related buttons, menus, and the menu item Save Image As-->Export
Image. If this parameter is included in an object/embed tag or as a directive
with no value or an unrecognized value, it will default to enabled (ON). NOTE: If both SaveAs and ExportFunction are set to disable, the Save Image As menu item is disabled. |
| ClipFunction |
true/false disable/enable disabled/enabled yes/no on/off 1/0 |
This tag enables or disables all Copy-to-Clipboard
functionality, including Copy Image and Copy Selection. The default is enabled or ON. |
| PrintFunction |
true/false disable/enable disabled/enabled yes/no on/off 1/0 |
This tag disables all Print functionality, including related buttons and menus. This also includes the print functionality initiated by the browser, leaving white space where an image would have printed. |
| ViewAnnFunction |
true/false disable/enable disabled/enabled yes/no on/off 1/0 |
This tag enables or disables all annotation viewing functionality. When disabled, annotations cannot be retrieved from the server or created. This sets the CreateAnnFunction=disable tag. |
| CreateAnnFunction |
true/false disable/enable disabled/enabled yes/no on/off 1/0 |
This tag enables or disables all annotation creation
functionality. When disabled, annotations will be retrieved from the server
and can be viewed. If disabled, annotation tool buttons, annotation edit
buttons, and Left Mouse Button menu items will be visible, but not available.
In addition, this tag will enable or disable all Manage Annotation menu
items except Hide annotations. The default is enabled. |
| OCRFunction |
true/false disable/enable disabled/enabled yes/no on/off 1/0 |
If OCR functionality is available in the Prizm
Viewer version being used, this tag will enable or disable it. If disabled,
the Clean Image and OCR buttons, Clean Image and OCR to Clipboard menu items
will not be functional. The default is enabled. |
| ImageInfoFunction |
true/false disable/enable disabled/enabled yes/no on/off 1/0 |
This tag enables or disables the image information
dialog. When disabled, related buttons and menu items will be shown, but
be nonfunctional. The default is enabled. |
| MemCache |
true/false disable/enable disabled/enabled yes/no on/off 1/0 |
When the value is set to true, all image data,
annotation data, and temporary data will be stored in memory instead of
in the local file system. In addition, SaveAs, Export, Print, and OCR functionality
will be disabled due to memory limits and third-party OCR limitations. Files
cached in memory will be purged if they are no longer referenced and the
cache memory limit is exceeded. The default is disabled or OFF. |
| AnnCGI |
|
This tag is used to add temporary default mappings for an annotation server application. The end user is not required to enter anything on the Preferences>Mapping tab. The contents of this tag will override all preference settings. The value of the AnnCGI tag/directive is a set of two values:
where
The server name must be provided as a host name. For example, the host
name of the image: The When using the AnnCGI tag/directive, the following rules apply:
Examples If the Prizm Viewer preferences contains a mapping entry with a site
"Default" and mapping "/cgi-bin/imgannot.cgi", it is equivalent to
"<</CGI-bin/imgannot.cgi>" in the value portion of the tag. |
| LocalCache | InternetCache[,partial_path], AppCache[,partial_path], or LocalCache, fully_qualified_path | The value of the LocalCache tag will be one of
three strings:
AppCache LocalCache If InternetCache is specified, the cache location will be defined by the
function call SHGetFolderPath(CSIDL_INTERNET_CACHE). Valid values are InternetCache[,partial_path], AppCache[,partial_path], or LocalCache, fully_qualified_path.
|
| Security | 0, 1, 2 or 3 |
Sets restrictions for the Viewer that override what can be set via preferences.
Valid values are:
|
| Toolbar | This tag is used to define buttons for a custom toolbar. For more information, see the Toolbar Button Codes table. | |
|
PrintHeader2 PrintHeader3 PrintFooter1 PrintFooter2 PrintFooter3 |
header 1 string header 2 string header 3 string footer 1 string footer 2 string footer 3 string |
These six directives let you specify up to three lines of text to be printed as either headers (at the top of printed pages) or footers (at the bottom of printed pages). The following is an example of a valid embed tag for an image that specifies
a header and a footer: <embed src="http://myserver/mydirectory/myfile.tif" For more information on Headers and Footers, see the sections below. |
| PDFResolution | Valid Values are between 72 and 600 |
This tag is used to define the resolution of PDF pages in the Viewer. Specify the desired resolution value in DPI |
Headers and footers have the following characteristics:
Headers and footers can also be set through the Preferences->Printing Tab.
For additional variables (%date, %time, %filename, etc.) that can be used as part of a header or footer string, review the information on the Preferences-> Printing Tab.
To see a list of directives that can be added to list files as global settings for printing, see Printing without Viewing.
When the text for headers and footers is specified or printed, the following rules apply:
Embed tag example
<EMBED SRC="http://www.myserver.com/prizmpluginqa/images/1page.tif"
HEIGHT="65%" WIDTH="95%" TYPE="image/TIF"
SAVEASFUNCTION="disable"
EXPORTFUNCTION="disable"
ANNCGI="<www.myserver.com<http://www.myserver.com/CGI-bin/annserver.cgi><
www.server2.com <https://www.server2.com/cgidir/annotcgi.exe>
"LOCALCACHE="internetcache">
Object tag example
<object id="PrizmXAdapter"
classid="CLSID:7A2633f0-33D5-4F5E-93BE-74ACBEE7F7EA"
height="1" width="1">
<
param name="SRC" value="c:\images\clock.jpg">
<
param name="SAVEASFUNCTION" value="disable">
<
param name="EXPORTFUNCTION" value="disable">
<
param name="ANNCGI" value="<www.myserver.com<http://www.myserver.com/cgi-
bin/annserver.cgi><www.server2.com
List File example
#saveasfunction=disable
#exportfunction=disable
#anncgi=<www.myserver.com<http://www.myserver.com/cgi-
bin/annserver.cgi><www.server2.com<https://www.server2.com/cgidir/annotcgi.exe>
#memcache=true
#localcache=localcache,c:\temp
http://www.myserver.com/images/image.tif