Skip to main content

core.medplumclient.createpdf_1

Home > @medplum/core > MedplumClient > createPdf

MedplumClient.createPdf() method

Warning: This API is now obsolete.

Use createPdf with CreatePdfOptions instead. To be removed in a future version.

Signature:

createPdf(docDefinition: TDocumentDefinitions, filename: string | undefined, tableLayouts?: Record<string, CustomTableLayout>, fonts?: TFontDictionary): Promise<WithId<Binary>>;

Parameters

Parameter

Type

Description

docDefinition

TDocumentDefinitions

The PDF document definition.

filename

string | undefined

Optional filename for the PDF binary resource.

tableLayouts

Record<string, CustomTableLayout>

(Optional) Optional pdfmake custom table layout.

fonts

TFontDictionary

(Optional) Optional pdfmake custom font dictionary.

Returns:

Promise<WithId<Binary>>

The result of the create operation.