Deck · @n-uf/papyrus 26.11.2

papyrus

Documents in HTML, printed to PDF

papyrus deck · n-uf.com/papyrus1 / 3

The page contract

One element, one sheet, one page

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 sheets
papyrus deck · n-uf.com/papyrus2 / 3

The export

Every PDF is checked

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

papyrus deck · n-uf.com/papyrus3 / 3