Skip to content

a11ydocs v1.7.0


a11ydocs / renderDocumentJson

Function: renderDocumentJson()

ts
function renderDocumentJson(json): Promise<Uint8Array<ArrayBufferLike>>;

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

Renders a PdfDocumentJson to PDF bytes. Asynchronous because fonts and images may be loaded from the filesystem, a URL, or Google Fonts.

Parameters

ParameterTypeDescription
jsonPdfDocumentJsonThe declarative document description.

Returns

Promise<Uint8Array<ArrayBufferLike>>

The serialized PDF as a Uint8Array.

Released under the ISC license.