New to Telerik UI for ASP.NET MVC? Download free 30-day trial

PDF Export

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

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

Customizations such as file name, font size, export of all pages can be added to the Pdf option of the widget:

    @(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()
        )
    )

See Also

In this article