Script functions reference > Script functions in alphabetical order > S > SetCurrMetadata

SetCurrMetadata
Syntax
SetCurrMetadata(metadataName, value);
metadataName
str
Description
Sets string metadata for the current document. The function can be used at the following post-processing scripting levels:
Before and after document, process and page.
Note:
If the metadata is not used with enveloping or sorting, the metadata must be declared with the DeclareMetadata() function at Before Job level.
Returns
num<>0
Example
$ret = SetCurrMetadata("zip", "Prague");
OpenText StreamServe 5.6 Updated: 2013-03-01