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

PDFViewerPdfjsProcessingFileSettingsBuilder

Methods

Url(System.String)

Specifies the url of the file.

Parameters

value - System.String

The url that points the file.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .PdfjsProcessing(pdf => pdf
                    .File(file => file
                        .Url("https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf")
                    )
                )
             )

Data(System.Object)

Specifies the file's data. Accepts blob, byte array or base64 string.

Parameters

value - System.Object

The data that corresponds to the file.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .PdfjsProcessing(pdf => pdf
                    .File(file => file.Data(byteArray))
                )
             )

CMapUrl(System.String)

Specifies the the URL where the predefined Adobe CMaps are located.

Parameters

value - System.String

The CMap URL.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .PdfjsProcessing(pdf => pdf
                    .File(file => file.CMapUrl("https:XXXX"))
                )
             )

CMapPacked(System.Boolean)

Specifies if the Adobe CMaps are binary packed.

Parameters

value - System.Boolean

The CMapPacked.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .PdfjsProcessing(pdf => pdf
                    .File(file => file.CMapPacked(true))
                )
             )

In this article
Not finding the help you need?