Skip to content

a11ydocs v1.7.0


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

ParameterTypeDescription
jsonPdfDocumentJsonThe declarative document description (inline assets only).

Returns

Uint8Array

The serialized PDF as a Uint8Array.

Released under the ISC license.