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:
User-defined variables have both variable name and value specified on command line.
Data source variables have a name that is derived from the name of the columns of data source table, and the variable values come from the current row of the table.
System variable values come from current state of the system in which PDFImprint is executed.
File variable values are properties of the input or output files
PDF variable values are properties of the PDF document
Anchor variables values are extracted from the text of the PDF document.
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.
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