core.medplumclient.createpdf_1 | Medplum
MedplumClient.createPdf() method
Warning: This API is now obsolete.
Use
createPdfwithCreatePdfOptionsinstead. 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
The result of the create operation.