Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>Page#pdf

Headless Chrome Deno API
Latest
method Page.prototype.pdf
Re-export
import { Page } from "https://deno.land/x/pptr@1.2.0/mod.ts";

Generatees a PDF of the page with the print CSS media type.

Parameters

optional
options: PDFOptions = [UNSUPPORTED]
  • options for generating the PDF.

Returns

Promise<Uint8Array>