7.x

Creating Triggers
This chapter describes platform-specific procedures for creating a trigger and inserting it at the head of a data stream.
A job consists of a document, a trigger, and data. If you are not using any PlanetPress Suite Workflow Tool, you must man-
ually create the appropriate trigger, add it to the head of the data stream, and send the result to the printer on which the doc-
ument resides. The procedure for creating the trigger and adding it to the head of the data stream is platform-dependent.
In this section, you learn to:
l "Implement a Trigger under Novell 3.x" (page 21)
l "Implement a Trigger under Novell 4.x and 5.x with NDS or Bindery Printers" (page 29)
l "Implement a Trigger under Windows with TCP/IP" (page 35)
l "Implement a Trigger under BSD Printing Systems (BSDi, FreeBSD, Linux)" (page 36)
l "Implement a Trigger under UNIX System V (Solaris)" (page 38)
l "Implement a Trigger and Configure an AIX 4.3 Printer" (page 38)
l Implement a Trigger under VMS
l "Implement a Trigger with AS/400 Systems" (page 54)
l "Prepare SAP Device Type for PlanetPress Design" (page 60)
l "Implement a Trigger under HP 3000" (page 66)
In addition, you will be able to answer the following questions:
l "Trigger" (page 19)
l "Trigger Syntax" (page 20)
l "Techniques for Inserting Triggers" (page 21)
Trigger
What is a trigger?
A trigger is two lines of PostScript that immediately precedes the input data and performs two functions: it puts the printer in
PostScript mode, and tells the printer which document to launch. A trigger “triggers” the execution of a document.
You execute a document installed on a printer by sending a trigger to the printer, followed by the input data. If you execute
your document in a PlanetPress Suite Workflow Tool, this tool inserts the trigger. If you execute your document directly on a
printer, you must manually insert the trigger at the head of the data stream.
Printer-Specific Control Characters
You can precede a trigger with printer-specific control characters. The most common reason to do so is to ensure the printer
receives the job you send it as a new job.
A printer expects each job that it handles to end with a special character that tells the printer it has reached the end of the input
data. Until the printer receives this special character, it continues to process all input it receives as part of that job. If there is
no input, the printer waits for a defined period of time, then times out and proceeds to the next job. If a new job arrives during
the period of time the printer is waiting for input, the printer does not recognize it as a new job; rather it processes it as input
for the current job.
It is thus common practice to include an end of job character at the beginning of the trigger to ensure that the printer rec-
ognizes your job as a new print job. For certain printers <CTRL D> or ASCII 04 is a valid end of job character, while more
recent printers require a Printer Job Language (PJL) sequence such as <ESC>%-12345X<CR><LF>.
As an example, the following trigger includes <CTRL D> as an end of job character:
<CRTL-D>%!PS-Adobe <CR>
Creating Triggers
©2014 Objectif Lune Inc - 19 -