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.
with-print-job
CAPI User Guide (Windows version) - 30 Aug 2011