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.
Parameters
Section titled “Parameters”readonly BodyElement[]
options
Section titled “options”Returns
Section titled “Returns”Uint8Array
Throws
Section titled “Throws”Error when options.encrypt is set — encryption requires the async
renderStyledPdfEncrypted path (WebCrypto).