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

Kendo UI PDFViewer component

Definition

Constructors

Initializes a new instance of the PDFViewer class.

C#
public PDFViewer(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

Specifies the default page size if no PDF is displayed in the PDFViewer. The page size will shrink to fit the viewer dimensions.

C#
public PDFViewerDefaultPageSizeSettings DefaultPageSize { get; }

The client-side global variable or function to provide the JSON data for the PDF document.

C#
public ClientHandlerDescriptor Document { get; set; }

Specifies the DPL configuration options. For a complete demo and a backend implementation, check the <a href="https://demos.telerik.com/aspnet-core/pdfviewer/dpl-processing" target="_blank">Telerik UI for ASP.NET Core DPL Processing demo</a>.

C#
public PDFViewerDplProcessingSettings DplProcessing { get; }

The height of the PDFViewer.

C#
public double? Height { get; set; }

Specifies the localization messages of the PDFViewer.

C#
public PDFViewerMessagesSettings Messages { get; }

The selected page number in the viewer.

C#
public double? Page { get; set; }

Specifies the PDF.JS configuration options. Including pdfjs is mandatory.

C#
public PDFViewerPdfjsProcessingSettings PdfjsProcessing { get; }

Specifies the default scale of the pages.

C#
public double? Scale { get; set; }

Toolbar option accepts a Boolean value which indicates if the toolbar will be displayed or an Object with items and overflow configuration. Inherits Kendo UI Toolbar.

C#
public PDFViewerToolbarSettings Toolbar { get; }

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.

C#
public PDFViewerViewSettings View { get; }

The width of the PDFViewer.

C#
public double? Width { get; set; }

Specifies the maximum zoom that could be applied to the pages.

C#
public double? ZoomMax { get; set; }

Specifies the minimum zoom that could be applied to the pages.

C#
public double? ZoomMin { get; set; }

Specifies the zoom rate that could be applied to the pages. Used when zooming on mousewheel and for the zoomIn and zoomOut tools.

C#
public double? ZoomRate { get; set; }

Methods

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteHtml(TextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)