core.medplumclient.createpdf_1
Home > @medplum/core > MedplumClient > createPdf
MedplumClient.createPdf() method
Warning: This API is now obsolete.
Use
createPdf
withCreatePdfOptions
instead. To be removed in Medplum 4.0.
Signature:
createPdf(docDefinition: TDocumentDefinitions, filename: string | undefined, tableLayouts?: Record<string, CustomTableLayout>, fonts?: TFontDictionary): Promise<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<Binary>
The result of the create operation.