Skip to content

renderStyledPdf

renderStyledPdf(body, options): Uint8Array

Defined in: src/pdf/styled-page-renderer.ts:19

Render a body to a PDF: lay it out, then emit it over a fresh PdfDocument. The byte-stable synchronous path.

readonly BodyElement[]

StyledRenderOptions

Uint8Array

Error when options.encrypt is set — encryption requires the async renderStyledPdfEncrypted path (WebCrypto).