Executes a body of code repeatedly with a variable bound to the number of the page to be printed each iteration.
The
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.
The first-page and last-page arguments are evaluated to yield the page numbers of the first and last pages in the document.