import { type Protocol } from "https://deno.land/x/pptr@1.2.0/vendor/devtools-protocol/protocol.d.ts";
const { PrintToPDFRequest } = Protocol.Page;
Properties
Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which means print all pages.
Whether to silently ignore invalid but successfully parsed page ranges, such as '3-2'. Defaults to false.
HTML template for the print header. Should be valid HTML markup with following classes used to inject printing values into them:
date
: formatted print datetitle
: document titleurl
: document locationpageNumber
: current page numbertotalPages
: total pages in the document
For example, <span class=title></span>
would generate span containing the title.
Whether or not to prefer page size as defined by css. Defaults to false, in which case the content will be scaled to fit the paper size.