New CairoPdfSurface (gb.cairo)

Dim hCairoPdfSurface As CairoPdfSurface
hCairoPdfSurface = New CairoPdfSurface ( Path As String, Width As Float, Height As Float [ , Version As String ] )

Creates a PDF surface of the specified size in millimiters to be written to a file.

  • Path : a filename for the PDF output (must be writable) NULL may be used to specify no output. This will generate a PDF surface that may be queried and used as a source, without generating a temporary file.

  • Width : width of the surface, in millimeters.

  • Height : height of the surface, in millimeters.

  • Version : if specified, restricts the generated PDF file to that version ("1.4" or "1.5").