> For the complete documentation index, see [llms.txt](https://docs.myshell.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.myshell.ai/create/pro-config-mode/api-reference/widgets/35-markdown-to-pdf.md).

# Markdown to PDF

## Try it in the Widget Center

Click this [url](https://app.myshell.ai/robot-workshop/widget/1782389600359624704) to try this widget and copy the Pro Config template.

## Usage

Convert the markdown file to PDF file.

**Input Parameters**

<table><thead><tr><th>Name</th><th>Type</th><th>Description</th><th>Default</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>document</td><td><code>string</code></td><td>Provide your input Markdown (.md).</td><td><a href="https://gist.githubusercontent.com/rt2zz/e0a1d6ab2682d2c47746950b84c0b6ee/raw/83b8b4814c3417111b9b9bef86a552608506603e/markdown-sample.md">default_url</a></td><td>true</td></tr></tbody></table>

**Output Parameters**

| Name      | Type     | Description               | File Type |
| --------- | -------- | ------------------------- | --------- |
| file\_url | `string` | The converted file in url |           |

**Output Example**

{% tabs %}
{% tab title="success" %}
{% code fullWidth="false" %}

```json
{
  "file_url": "https://object-storage-16oh.lepton.ai/ws-k8d7q1rw/doc_converter/output/eb20269d52d943559c8f03d56fbb8ed9/tmpp_h6lc6k.pdf"
}
```

{% endcode %}
{% endtab %}
{% endtabs %}
