doc<N>

This parameter points to the URL of the parameters file that is associated with a document (but not the URL of the document itself). The parameters file specifies the document and the parameters that are used to display the document.

You can specify a relative location or an absolute URL for the parameters file.

When this parameter is used, extra buttons are made available so that the user can browse the document list.

The parameters file is a text file in which each line contains a single parameter. Each parameter name and value must be specified on a separate line. For example, you might have a docParams1.txt parameters file that contains the following parameters:
filename = "myfile.tif "
printHeader = "My first document "
You might have a docParams2.txt parameters file that contains the following parameters:
page1 = "page1.tif "
page2 = "page2.tif "
page3 = "page3.tif "
printHeader = "My second document "
You can also pass a base64-encoded string in place of a text file. The string defines the same content that is found in the traditional text file. In the following example, the base64-encoded string that is passed as the value for parameter doc1 represents the content of filename = "docs/2.tif".
<param name="doc1" value="data:text/plain;base64,ZmlsZW5hbWUgPSAiZG9jcy8yLnRpZiI">
<param name="doc2" value="data:text/plain;base64,
ZmlsZW5hbWUgPSAiZG9jcy9odXNreS5qcGci">
The parameters file can specify parameters that are also specified in the HTML parameter list. In this case, the settings in the parameters file take precedence. For example, assume that the following parameters are specified in the Mywebpage.htm file:
<param name="invert" value="true" />
<param name="doc1" value="docParamsA.txt" />
<param name="doc2" value="docParamsB.txt" />

These parameters initiate the viewer with the invert parameter set to true and configure the viewer to use docParamA.txt and docParamB.txt parameters files for its documents.

The docParamsA.txt parameters file contains the following parameters:
filename = "myfileA.tif "
invert = false

These parameters specify an image path and set the invert parameter to false

The docParamsB.txt parameters file contains the following parameter that specifies an image path:
filename = "myfileB.tif"

When the viewer is started, the invert parameter is set to true as specified in the Mywebpage.htm file. However, the viewer opens the docParamsA.txt file almost immediately, which sets the invert flag to false. Therefore, myfileA.tif image is displayed as normal.

The docParamsB.txt parameters file does not specify the invert parameter. Therefore, the invert flag reverts to the value set in Mywebpage.htm file when the user clicks the Next Document button to open the docParamsB.txt image and the image is inverted.

You can only specify document-specific parameters in a parameters file. For example, the following parameters are valid: rotation, flip, zoom, pageLabel<N>, thumbLabel<N>, fileList, and page<N>. You cannot specify viewer-specific parameters such as the obfuscate parameter, button parameters, and menu configuration parameters.

If you specify a parameter in a document parameters file, it is best to set that parameter in all document parameters files rather than relying on the default parameter value for some documents.

Sample syntax


<param name="doc1" value="docParams1.txt" />
<param name="doc2" value="docParams2.txt " />
<param name="doc3" value="docParams3.txt " />

Default setting: N/A