DPL Processing

The PDFViewer can be configured to use Telerik Document Processing library for PDF processing.

Important

DPL Processing is BETA version and has the following limitations:

  • Clipping elements and Gradients are currently not supported.
  • SVG or encoded images in other formats might not render correctly.

Basic Configuration

Requirements

  • DPL Processing depends on the Telerik.Web.PDF assembly.
  • To use DPL Processing in a project, it must target 4.6.2 .NET Framework.
  • The Read.Url option is mandatory, the Open and Download options are mandatory if the respective tools are displayed in the toolbar.

An example of a PDFViewer widget configured to use DPL Processing.

Example
    @(Html.Kendo().PDFViewer()
        .Name("pdfviewer")
        .DplProcessing(dpl => {
            dpl.Read(r => r.Url(Url.Action("GetInitialPdf", "PdfViewer")));
            dpl.Upload(upload => upload.Url(Url.Action("GetPdf", "PdfViewer")).SaveField("file"));
            dpl.LoadOnDemand(true);
        })
        .Toolbar(toolbar =>
            toolbar.Items(items =>
            {
                items.Add().Command("PageChangeCommand").Type("pager").Name("pager");
                items.Add().Name("spacer").Type("spacer");
                items.Add().Command("OpenCommand").Type("button").Name("open").Icon("folder-open");
            })
        )
        .Height(1200)
    )

See Also

For runnable examples on Kendo UI PDFViewer, refer to the Telerik UI for ASP.NET MVC Demos site.

In this article
Not finding the help you need? Improve this article