Surface.copyPage

void copyPage()

Emits the current page for backends that support multiple pages, but doesn't clear it, so that the contents of the current page will be retained for the next page. Use [cairo.surface.Surface.showPage] if you want to get an empty page after the emission.

There is a convenience function for this that takes a #cairo_t, namely [cairo.context.Context.copyPage].