csurface:RestrictToVersion(version)
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.