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

PDFViewerDefaultPageSizeSettingsBuilder

Methods

Width(System.Double)

Specifies the default page width if no PDF is displayed in the PDFViewer.

Parameters

value - System.Double

The value that configures the width.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .DefaultPageSize(dfpagesize => dfpagesize.Width(595))
             )

Height(System.Double)

Specifies the default page height if no PDF is displayed in the PDFViewer.

Parameters

value - System.Double

The value that configures the height.

Example


            @(Html.Kendo().PDFViewer()
               .Name("pdfviewer")
               .DefaultPageSize(dfpagesize => dfpagesize.Height(842))
             )

In this article
Not finding the help you need?