Appearance
a11ydocs / renderDocumentJsonSync
Function: renderDocumentJsonSync()
ts
function renderDocumentJsonSync(json): Uint8Array;Defined in: src/document-json.ts:532
Synchronous variant of renderDocumentJson. Only inline base64 font and image sources are supported — path, url, and google sources throw, because they require asynchronous loading.
Parameters
| Parameter | Type | Description |
|---|---|---|
json | PdfDocumentJson | The declarative document description (inline assets only). |
Returns
Uint8Array
The serialized PDF as a Uint8Array.