Macro
with-document-pages page-var first-page last-page &body body
with-document-pages evaluates body repeatedly, with page-var bound to the number of the page to print on each iteration. It is used to by applications providing Page on Demand printing. with-pagewith-print-job