psSurfaceRestrictToLevel

fnvoid psSurfaceRestrictToLevel(cairo.surface.Surface surface, cairo.types.PsLevel level)

Restricts the generated PostSript file to level. See [cairo.global.psGetLevels] for a list of available level values that can be used here.

This function should only be called before any drawing operations have been performed on the given surface. The simplest way to do this is to call this function immediately after creating the surface.

Parameters

surfacea PostScript #cairo_surface_t
levelPostScript level