## MedplumClient.createPdf() method [​](/content/docs/sdk/core.medplumclient.createpdf_1#medplumclientcreatepdf-method/index.html)

> Warning: This API is now obsolete.
>
> Use `createPdf` with `CreatePdfOptions` instead. To be removed in a future version.

**Signature:**

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

## Parameters [​](/content/docs/sdk/core.medplumclient.createpdf_1#parameters/index.html)

| 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](/content/docs/sdk/core.withid) <Binary>>

The result of the create operation.

- [MedplumClient.createPdf() method](/content/docs/sdk/core.medplumclient.createpdf_1#medplumclientcreatepdf-method/index.html)
- [Parameters](/content/docs/sdk/core.medplumclient.createpdf_1#parameters/index.html)
