Name
csurface:RestrictToVersion -- restrict to version
Synopsis
csurface:RestrictToVersion(version)
Function
Restricts the generated SVG or PDF file to version. For PDF surfaces, you have to pass a PDF version constant here. See cairo.PDFSurface() for a list of available PDF versions. For SVG surfaces, you have to pass an SVG version constant here. See cairo.SVGSurface() for a list of available SVG versions.

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.

Inputs
version
PDF or SVG version (see above)

Show TOC