7.5

Table Of Contents
Syntax
showpage()
Argument
None
Code Sample Example
This example specifies the number of pages to print at line 1, between columns 1 and 5.
Example
Define(&NumberOfPages,integer,strtoint(trim(@(1,1,5))))
Define(&x,integer,1)
for(&x,1,1,&NumberOfPages)
execpage('Page1')
showpage()
endfor()
PPDs and PostScript
CallPPD (procedure)
Calls a section of the PostScript Printer Description (PPD) file and executes it on the printer. Use this to set printer options such
as the input tray or duplexing options. The tokens and subtokens you use as arguments with this function must be defined in
the PPD file associated with your document or page in the document’s or page’s Basic Attributes. PlanetPress searches the PPD
file for the token-subtoken combination and then prompts the printer to execute the corresponding code.
Syntax
callppd( token, subtoken )
Arguments
token
This is the string to search for in the PPD file (for example, Duplex).
subtoken
This is string to search for that is a setting for the token (for example, None).
Example
if((&Condition1) or (&Condition2))
callppd("Tray", "2")
©2010 Objectif Lune Inc - 623 -