Name
cairo.PDFSurface -- create PDF surface
Synopsis
handle = cairo.PDFSurface(filename$, width_in_points, height_in_points)
Function
Creates a PDF surface of the specified size in points to be written to filename$.

This function returns a handle to the newly created surface. The caller owns the surface and should call csurface:Free() when done with it.

This function always returns a valid handle, but it will return a handle to a "nil" surface if an error such as out of memory occurs. You can use csurface:Status() to check for this.

Inputs
filename$
a filename for the PDF output (must be writable)
width_in_points
width of the surface, in points (1 point == 1/72.0 inch)
height_in_points
height of the surface, in points (1 point == 1/72.0 inch)
Results
handle
PDF surface

Show TOC