Restricts the generated PDF file to version. See cairo_pdf_get_versions() for a list of available version values that can be used here.

cairo_pdf_surface_restrict_to_version(surface, version)

Arguments

surface

[cairo_surface_t *] a PDF #cairo_surface_t

version

[int] PDF version

Details

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.

Since: 1.10

C function prototype: void cairo_pdf_surface_restrict_to_version (cairo_surface_t *surface, cairo_pdf_version_t version)

See also