7.5

Table Of Contents
Return Values:
l 0:No metadata, for example a Design document with no data file.
l 1:Metadata is being generated (Create Metadata / Refresh Metadata).
l 2:Metadata is in read mode, such as in PlanetPress Design's workspace.
Use Cases:
l Prevent circular logic when adding a page based on the metadata page count. For example, when manually adding a
blank page on duplex jobs when the page number is odd, you could add a condition so that this page only "prints"when
the &metamode <> 1.
l Prevent pages from being added to the metadata. Other than blank pages, you may want to exclude certain pages from
the metadata, for example a "Terms and Conditions" page, a header or footer page, separators, etc. By setting its con-
dition to =&metamode <> 1, these pages will still print but will not affect metadata page counts.
Physical (system object)
The physical object contains system variables that reflect the current state of the document. These system variables are
read-only and therefore cannot be changed using the set command. You can access each system variable using the same syn-
tax.
Syntax
&physical.x measure value
&physical.y measure value
Variables
x,y
Measure value containing the current horizontal (x) or vertical (y) position of the drawing pen, relative to the upper left corner
of the physical page, whose coordinates are (0,0). This system object can be used to assess the amount of space left on a
page.
&PrinterMode (system variable)
Returns the current output mode for the document. This allows you to test for a specific value and react accordingly.
Syntax
&printermode integer value
©2010 Objectif Lune Inc - 248 -