Executes a body of code repeatedly with a variable bound to the number of the page to be printed each iteration.
bound to the number of the page to print on each iteration. It is used to by applications providing Page on Demand printing.
arguments are evaluated to yield the page numbers of the first and last pages in the document.
with-document-pages takes care of
when the user sets them in print-dialog, by evaluating
for the pages that are in the intersection of what user chose and the other arguments.
with-document-pages must be called within the dynamic context of with-print-job.
CAPI User Guide and Reference Manual (Unix version) - 25 Feb 2015