6.0

Table Of Contents
162
Language Reference
4
Argument
displayseconds — Boolean specifying whether to display the time using seconds. True returns the time
with seconds, False, without. The precise format of the of the time value strings are set in the Windows
Regional options.
Code Sample Example
This example shows how to add the current time with seconds (11:14:46 AM, as opposed to 11:14 AM, for
example) on a document page.
Example
show(time(true))
Translate (procedure)
Offsets an object's position from its original spot on the page. The point of origin of any object is (0,0) by
default. All commands within an object are relative to that point of origin. Moving, or translating the point
of origin allows you to reset the point of origin within the boundaries of the object.
Syntax
translate( x, y )
Arguments
x, y — Measure values representing the horizontal/vertical offset, in inches, of the new point of origin
within the object. These values are relative to the current point of origin, not absolute.
Code Sample Examples
Example 1 moves the point of origin 1 inch right and down from the original point. Example 2 moves the
point of origin 1 inch right and down from the current point. Example 3 moves the point of origin back to
its original position. Translate sets the new point of origin for all subsequent commands. Consequently,
translate commands are cumulative. Therefore, to restore the previous point of origin, you must issue a
translate command that negates whatever offset was previously applied.
Example 1
translate(1,1)
show('some text')
Example 2
translate(1,1)