Package: gtk

Accessor gtk-print-operation-n-pages

Lambda List

gtk-print-operation-n-pages (object)

Syntax

(gtk-print-operation-n-pages object) => n-pages
(setf (gtk-print-operation-n-pages object) n-pages)

Arguments

object -- a gtk-print-operation object
n-pages -- an integer with the number of pages

Details

Accessor of the n-pages slot of the gtk-print-operation class.

The (setf gtk-print-operation-n-pages) slot access function sets the number of pages in the document.

This must be set to a positive number before the rendering starts. It may be set in a "begin-print" signal hander.

Note that the page numbers passed to the "request-page-setup" and "draw-page" signals are 0-based, i.e. if the user chooses to print all pages, the last "draw-page" signal will be for page n-pages - 1.
 

See also

2020-4-8