sempdf
sempdf v1.9.1Functions

Function: renderDocumentJsonSync()

sempdf v1.9.1


sempdf / renderDocumentJsonSync

function renderDocumentJsonSync(json): Uint8Array;

Defined in: src/document-json.ts:549

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.

On this page