Expression painter:showpage() clears the current drawing and paints the background all white.

Things are a bit different when the painting device is a printer. Function painter:showpage ensures that the next drawing operation will first print the current page and initialize a new page. Successive calls of painter:showpage() do not print multiple pages unless some drawing operation is performed on each page.

See also: PostScript operator showpage.