In
Page on Demand Printing,
the application provides code to output an arbitrary page. The application should be prepared to print pages in any order. This is the preferred means of implementing printing. Page on Demand printing uses the
with-document-pages macro, which executes the code for each page to be printed, in an unspecified order.
CAPI User Guide and Reference Manual (Unix version) - 25 Feb 2015