This driver allows the generation of a SVG file, a modularized language for describing two-dimensional vector and mixed vector/raster graphics in XML. The SVG specification is an open standard that has been under development by the World Wide Web Consortium (W3C) since 1999.
The file is created by calling function cdCreateCanvas(CD_SVG, Data). The Data parameter is a string that must contain the filename and the canvas dimensions, in the following format:
"filename [widthxheight resolution]" or in C "%s %gx%g %g"
Only the parameter filename is required. The filename must be inside double quotes (") if it has spaces. Width and height are provided in millimeters (note the lowercase "x" between them), and their default value in pixels is INT_MAX for both dimensions. Resolution is the number of pixels per millimeter; its default value is "3.78 pixels/mm" (96 DPI). Width, height and resolution are real values.
Any amount of such canvases may exist simultaneously. It is important to note that a call to function cdKillCanvas is required to close the file properly.