Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dwm/ext/canvas.ts>PdfDocument#newPage

Deno Window Manager: Cross-platform window creation and management
Latest
method PdfDocument.prototype.newPage
import { PdfDocument } from "https://deno.land/x/dwm@0.3.6/ext/canvas.ts";

Creates a new page and returns a 2D rendering context for drawing on it. The context extends CanvasRenderingContext2D so it has same API.

You must not use the context after calling endPage.

Parameters

w: number
h: number
optional
contentRect: Rect