Producing a page
The actual contents of a print job consist of graphics and text created with the Common Graphics API. See "Printing with Common Graphics" for more information on printing graphics.
An application uses the following steps to produce pages of graphics and text:
1. Send a startPage message.
2. Upon reception of an expose callback, draw graphics on the window associated with the shell (window). The number of the page currently being drawn is specified in the callback data of the expose callback.
3. Send an endPage message.
4. Repeat steps 1 to 3 as necessary.
Last modified date: 01/29/2015