psSurfaceSetSize
fn
void psSurfaceSetSize(cairo.surface.Surface surface, double widthInPoints, double heightInPoints)Changes the size of a PostScript surface for the current (and subsequent) pages.
This function should only be called before any drawing operations have been performed on the current page. The simplest way to do this is to call this function immediately after creating the surface or immediately after completing a page with either [cairo.context.Context.showPage] or [cairo.context.Context.copyPage].
Parameters
surface | a PostScript #cairo_surface_t |
widthInPoints | new surface width, in points (1 point == 1/72.0 inch) |
heightInPoints | new surface height, in points (1 point == 1/72.0 inch) |