gfx:start-pdf-capture

(gfx:start-pdf-capture canvas file-path)


Description:

Start capturing all canvas drawing commands to a new pdf file specified by file-path until stop-pdf-capture closes the file


Arguments:

      file-path -- the fully qualified path to the new pdf file

         canvas -- canvas whose vector drawing you want to capture


Returns: boolean


Examples:

(define canvas (gfx:make-canvas))

(define path (gfx:make-square 50 50 50))

(gfx:start-pdf-capture canvas "/tmp/test.pdf")

(gfx:draw-path (now) canvas path '(0 1 0 1) '(1 0 1 1))

(gfx:stop-pdf-capture canvas)



Back to index