Skip to main content

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

ParameterTypeDescription
jsonPdfDocumentJsonThe declarative document description (inline assets only).

Returns

Uint8Array

The serialized PDF as a Uint8Array.