sempdf
sempdf v1.9.1Functions

Function: renderDocumentJson()

sempdf v1.9.1


sempdf / renderDocumentJson

function renderDocumentJson(json, options?): Promise<Uint8Array<ArrayBufferLike>>;

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

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.
optionsRenderDocumentJsonOptions-

Returns

Promise<Uint8Array<ArrayBufferLike>>

The serialized PDF as a Uint8Array.

On this page