from Canvas
open fun fromCanvas(@NonNull pageSize: Size, @NonNull callback: NewPage.OnDrawCanvasCallback): NewPage.Builder
Creates a new page from a Canvas holding all the draw calls.
Parameters
page Size
Page size in PDF points.
callback
An OnDrawCanvasCallback that should be called to perform the drawing on the canvas.