Post Population Script

The Post Population Script is called when the field is tagged to a frame during the final stage of population. The script receives a series of arguments that vary depending on whether the Scripting module is installed. Without the Scripting module, only two arguments are passed:

arguments[0] : The item being populated.
arguments[1] : The document object.

With the Scripting Module installed, an additional two parameters are passed that can be used to extend the behaviour:

arguments[2] : The DataSource object.
arguments[3] : The Record object.

For more complex scripts, a script file can be placed in the data sources Scripts folder, and be referenced with a single include:

Example script to scale a barcode, so it is has less whitespace around it: