Specifications

4-145
Printer, Plotter, and Spooler Subsystem Programming
Spooler Job Header and Trailer Pages
The pipelines for generating header and trailer pages are defined by the system
administation attributes ( System Administration Attributes on page 4-6) sh (header pages)
and st (trailer pages). The printing of header and trailer pages are separate processes from
the spooler print jobs they accompany, even though they are not shown in the output of
queue status queries.
Header and Trailer Page Pipelines
Below is the sh attribute used to define the pipeline for header page generation and printing
for an extended ASCII queue on an IBM 4029 LaserPrinter. The attribute is shown as
formatted by the lsvirprt command. See Viewing, Formatting, or Modifying Virtual Printer
Definitions on page 4-136 for a further explanation.
Pipeline for Header Page
sh = %Ide/pioburst %F[H] %Idb/H.ascii | %Ide/pioformat
–@%Idd/%Imm –!%Idf/piof52
02 –L! –J! %IsH –u%IuH
%Ide INCLUDE: (Directory Containing Miscellaneous
Modules)
’/pioburst ’
%F[H] If ”–H] Argument” on Command Line, ”–# Argument”
–> OUTPUT
’ ’
%Idb INCLUDE: (Directory Containing Header and Trailer
Text Files)
’/H.ascii | ’
%Ide INCLUDE: (Directory Containing Miscellaneous
Modules)
’/pioformat –@’
%Idd INCLUDE: (Directory Containing Digested Data Base
Files)
’/’
%Imm INCLUDE: (File Name Of (Digested) Data Base; Init.
By
”piodigest” (mt.md.mn.mq:mv))
’ –!’
%Idf INCLUDE: (Directory Containing Loadable Formatter
Routines)
’/piof5202 –L! –J! ’
%IsH INCLUDE: (FORMATTING FLAGS for header page)
’ –u’
%IuH INCLUDE: (Input PAPER TRAY for header page)
During spooler job processing, the value of the sh attribute is determined to be:
/usr/lib/lpd/pio/etc/pioburst /usr/lib/lpd/pio/burst/H.ascii |
/usr/lib/lpd/pio/etc/pioformat
–@/var/spool/lpd/pio/@local/ddi/ibm4029.asc.lp1.asc:lp1
–!/usr/lib/lpd/pio/fmtrs/piof5202 –L! –J! –u1
The pioburst command processes the header page template and pipes its output to the
device–independent formatter, pioformat, which in turn loads the digested version of the
colon file for this virtual printer (the argument to the –@ flag) and the device–dependent
formatter, piof5202 (the argument to the –! flag). There are three flags to piof5202:
1. –L! – Long lines should not be wrapped.
2. –J! – The printer should be restored to the state it was in before the header page was
printed.
3. –u1 – The header page should be drawn from paper tray 1.