sempdf v1.9.1Functions
Function: renderDocumentJson()
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
| Parameter | Type | Description |
|---|---|---|
json | PdfDocumentJson | The declarative document description. |
options | RenderDocumentJsonOptions | - |
Returns
Promise<Uint8Array<ArrayBufferLike>>
The serialized PDF as a Uint8Array.