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

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' toolbox:

    @(Html.Kendo().Editor()
            .Name("editor")
            .Tools(tools => tools
                .Pdf()
            )
    )
    <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 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()
        )
    )
    <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

In this article