Appearance
a11ydocs / renderDocumentJson
Function: renderDocumentJson()
ts
function renderDocumentJson(json): Promise<Uint8Array<ArrayBufferLike>>;Defined in: src/document-json.ts:499
Renders a PdfDocumentJson to PDF bytes. Asynchronous because fonts and images may be loaded from the filesystem, a URL, or Google Fonts.
Parameters
| Parameter | Type | Description |
|---|---|---|
json | PdfDocumentJson | The declarative document description. |
Returns
Promise<Uint8Array<ArrayBufferLike>>
The serialized PDF as a Uint8Array.