Changes the size of a PostScript surface for the current (and subsequent) pages.

cairo_ps_surface_set_size(surface, width_in_points, height_in_points)

Arguments

surface

[cairo_surface_t *] a PostScript #cairo_surface_t

width_in_points

[double] new surface width, in points (1 point == 1/72.0 inch)

height_in_points

[double] new surface height, in points (1 point == 1/72.0 inch)

Details

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_show_page() or cairo_copy_page().

Since: 1.2

C function prototype: void cairo_ps_surface_set_size (cairo_surface_t *surface, double width_in_points, double height_in_points)

See also