PDFViewerBuilder
Defines the fluent API for configuring the Kendo PDFViewer for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class PDFViewerBuilder : WidgetBuilderBase<PDFViewer, PDFViewerBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<PDFViewer, PDFViewerBuilder>PDFViewerBuilder
Implements:
Inherited Members
Constructors
Methods
Specifies the default page size if no PDF is displayed in the PDFViewer. The page size will shrink to fit the viewer dimensions.
public PDFViewerBuilder DefaultPageSize(Action<PDFViewerDefaultPageSizeSettingsBuilder> configurator)
The action that configures the DefaultPageSize.
Returns:The client-side global variable or function to provide the JSON data for the PDF document.
public PDFViewerBuilder Document(string handler)
The value that configures the document action.
Returns:Specifies the DPL configuration options. For a complete demo and a backend implementation, check the Telerik UI for ASP.NET Core DPL Processing demo.
public PDFViewerBuilder DplProcessing(Action<PDFViewerDplProcessingSettingsBuilder> configurator)
The action that configures the DPL processing.
Returns:Configures the client-side events.
public PDFViewerBuilder Events(Action<PDFViewerEventBuilder> configurator)
The client events action.
Returns:The height of the PDFViewer.
public PDFViewerBuilder Height(double value)
The value that configures the height.
Returns:Specifies the localization messages of the PDFViewer.
public PDFViewerBuilder Messages(Action<PDFViewerMessagesSettingsBuilder> configurator)
The action that configures the messages.
Returns:The selected page number in the viewer.
public PDFViewerBuilder Page(double value)
The value that configures the page.
Returns:Specifies the PDF.JS configuration options. Including PDF.JS is mandatory.
public PDFViewerBuilder PdfjsProcessing(Action<PDFViewerPdfjsProcessingSettingsBuilder> configurator)
The action that configures the PDF.JS processing.
Returns:Specifies the default scale of the pages.
public PDFViewerBuilder Scale(double value)
The value that configures the scale.
Returns:Toolbar option accepts a Boolean value which indicates if the toolbar will be displayed or an Object with items.
public PDFViewerBuilder Toolbar(Action<PDFViewerToolbarSettingsBuilder> configurator)
The action that configures the toolbar.
Returns:Toolbar option accepts a Boolean value which indicates if the toolbar will be displayed or an Object with items.
public PDFViewerBuilder Toolbar(bool enabled)
Enables or disables the toolbar option.
Returns:Defines the page surface options. This setting is available only for DPL Processing. The page render a drawing Surface and all of its configuration options could be defined.
public PDFViewerBuilder View(Action<PDFViewerViewSettingsBuilder> configurator)
The action that configures the view.
Returns:The width of the PDFViewer.
public PDFViewerBuilder Width(double value)
The value that configures the width.
Returns:Specifies the maximum zoom that could be applied to the pages.
public PDFViewerBuilder ZoomMax(double value)
The value that configures the ZoomMax.
Returns:Specifies the minimum zoom that could be applied to the pages.
public PDFViewerBuilder ZoomMin(double value)
The value that configures the ZoomMin.
Returns:Specifies the zoom rate that could be applied to the pages. Used when zooming on mousewheel and for the zoomIn and zoomOut tools.
public PDFViewerBuilder ZoomRate(double value)
The value that configures the ZoomRate.
Returns: