If eps is %TRUE, the PostScript surface will output Encapsulated PostScript.

cairo_ps_surface_set_eps(surface, eps)

Arguments

surface

[cairo_surface_t *] a PostScript #cairo_surface_t

eps

[int] %TRUE to output EPS format PostScript

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. An Encapsulated PostScript file should never contain more than one page.

Since: 1.6

C function prototype: void cairo_ps_surface_set_eps (cairo_surface_t *surface, cairo_bool_t eps)

See also