Deck · @n-uf/papyrus 26.11.2
papyrus
Documents in HTML, printed to PDF
Deck · @n-uf/papyrus 26.11.2
Documents in HTML, printed to PDF
The page contract
Every element with the class pdf-page is one sheet on screen and one page in the PDF. sheetCss() sizes it to A4 or Letter.
import { SHEETS, sheetCss } from "@n-uf/papyrus";
const css = sheetCss(SHEETS.LETTER); // US Letter sheetsThe export
Three counts must agree. If they don't, the export stops instead of writing the file.
In the HTMLThe page elements
=
In the PDFIts own page count
=
From youThe count you expect