Function: renderDocumentJsonSync()
function renderDocumentJsonSync(json): Uint8Array;
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.