# PDF Export

The Telerik UI Editor for ASP.NET Core comes with a built-in option to export its content to PDF. To enable the PDF export, add the `Pdf` tool to the widget's toolbox:

```Razor HtmlHelper
    @(Html.Kendo().Editor()
            .Name("editor")
            .Tools(tools => tools
                .Pdf()
            )
    )
```

```Razor TagHelper
    <kendo-editor name="editor">
        <tools>
	 	    <tool name="pdf">
	 	    </tool>
	    </tools>
    </kendo-editor>
```

Customizations such as file name, font size, export of all pages can be added to the [`Pdf`](https://www.telerik.com/aspnet-core-ui/documentation/api/kendo.mvc.ui.fluent/editorpdfsettingsbuilder) option of the widget:

```Razor HtmlHelper
    @(Html.Kendo().Editor()
        .Name("editor")
        .Pdf(pdf => pdf
            .Margin(20, 20, 20, 20)
            .FileName("Telerik UI Editor Export")
            .ProxyURL(Url.Action("Pdf_Export_Save", "Editor"))
            .PaperSize("A4")
        )
        .Tools(tools => tools
            .Pdf()
        )
    )
```

```Razor TagHelper
    <kendo-editor name="editor">
        <tools>
	 	    <tool name="pdf">
	 	    </tool>
	    </tools>
	    <pdf paper-size="A4" file-name="Telerik UI Editor Export" proxy-url="/Editor/Pdf_Export_Save">
            <margin left="20" right="20" top="20" bottom="20" />
	    </pdf>
    </kendo-editor>
```

## See Also

* [PDF Export in the Editor HtmlHelper for ASP.NET Core (Demo)](https://demos.telerik.com/aspnet-core/editor/pdf-export)
* [Server-Side API](https://www.telerik.com/aspnet-core-ui/documentation/api/editor)
