A Print job is contained within a use of the macro with-print-job, which handles connection to the printer and sets up a graphics port for drawing to the printer.
CAPI User Guide and Reference Manual (Macintosh version) - 3 Aug 2017