import { type PDFOptions } from "https://deno.land/x/pptr@1.2.0/mod.ts";
Valid options to configure PDF generation via Page.pdf.
Properties
HTML template for the print header. Should be valid HTML with the following classes used to inject values into them:
-
date
formatted print date -
title
document title -
url
document location -
pageNumber
current page number -
totalPages
total pages in the document
optional
format: PaperFormatSets the width of paper. You can pass in a number or a string with a unit.
Sets the height of paper. You can pass in a number or a string with a unit.
Give any CSS @page
size declared in the page priority over what is
declared in the width
or height
or format
option.
optional
margin: PDFMarginSet the PDF margins.