fromCanvas

Creates a new page from a Canvas holding all the draw calls.

Parameters

pageSize

Page size in PDF points.

callback

An OnDrawCanvasCallback that should be called to perform the drawing on the canvas.