Variables

Variables allow a single script file to produce personalized output PDF documents.  The majority of string parameters can include a variable value to be evaluated when the script file is executed.  The typical use of the variable is in the file names of the input and output commands, and as values for the barcode or text commands.

The variables fall in several categories:

Variable names may be comprised of multiple parts, separated by a "." character, such as comp.$name and file.$name.

Using a qualifier distinguishes between similarly named values, and can be used in string variable name as: ${VarName}.  

For simplicity of notation the right-most section is sufficient so long as no ambiguity exists.  For example:

• ${id} is the same as ${var.id}  

• ${$name} is not valid because it might mean ${comp.$name} or ${file.$name}

The special variable  ${_vars} instructs the program to print (in the output document) a list of all variables and their runtime values.

Examples

Produce a PDF output with the same name and directory as the input file

output ${inp.$dir}\${inp.base}.pdf

  input "c:\abc.tif"

Put a data source value into the barcode

barcode ${data.CustomeID}${data.FirstName}${data.LastName}

List all variable values in the top right corner of the page

  text target=page:tr, ${_vars} # list all variables