6.0

Table Of Contents
52
PlanetPress Talk Summary
3
Work with PPDs
Save and Restore the Current Graphics State
Work with Global Functions
Name: Type: Description:
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 documents 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.
SelectMedia
procedure On screen, displays the physical page. On a PostScript printer, calls the
specified paper.
Name: Type: Description:
GSave
procedure This command saves all current system parameters, which can later be
restored using the grestore command. By bracketing parts of your
PlanetPress Talk programs with gsave/grestore commands, you can
make sure the current system state is preserved and remains unaffected
by whatever operations your program executes. For instance, each
PlanetPress object, once converted to its PlanetPress Talk scripting
language equivalent, begins with a gsave command and ends with a
grestore, thus ensuring objects do not interfere with each other, or with
the system.
GRestore
procedure This command restores all system parameters previously saved with the
gsave command. If no gsave command was issued previously, the
results are unpredictable. For more information, refer to the gsave
command.
Name: Type: Description:
@name
function Calls and executes a function or procedure created using the function()
command.