RadPdfViewer
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
[TelerikToolboxCategory("Visualization")]
[ToolboxBitmap(typeof(RadPdfViewer), "Toolbox.Icons.PdfViewer.png")]
[RequiredScript(typeof(jQueryPlugins))]
[RequiredScript(typeof(Html5PdfViewer))]
[ClientScriptResource("Telerik.Web.UI.RadPdfViewer", "Telerik.Web.UI.PdfViewer.Scripts.RadPdfViewer.js")]
[EmbeddedSkin("PdfViewer", typeof(RadPdfViewer))]
[EmbeddedSkin("PdfViewer", "Default", typeof(RadPdfViewer))]
[RequiredCss("Telerik.Web.UI.Skins.Common.common.css", RenderMode.Classic, typeof(RadPdfViewer))]
[RequiredCss("Telerik.Web.UI.Skins.Common.common.css", RenderMode.Lightweight, typeof(RadPdfViewer))]
[RequiredCss("Telerik.Web.UI.Skins.Common.common.css", RenderMode.Mobile, typeof(RadPdfViewer))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Classic, typeof(RadPdfViewer))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Lightweight, typeof(RadPdfViewer))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Mobile, typeof(RadPdfViewer))]
public class RadPdfViewer : RadWebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IControlResolver, IPostBackDataHandler, ISkinnableControl, IControl
Inheritance: objectControlWebControlRadWebControlRadPdfViewer
Implements:
Inherited Members
Constructors
public RadPdfViewer()
Properties
Gets or sets the active page number in the viewer.
public int ActivePage { get; set; }
Gets the client events handlers for the PdfViewer.
[PersistenceMode(PersistenceMode.InnerProperty)]
public PdfViewerClientEvents ClientEvents { get; }
The CssClass property will now be used instead of the former Skin and will be modified in AddAttributesToRender()
protected override string CssClassFormatString { get; }
Overrides:
Specifies the default page size if no PDF is displayed in the PdfViewer. The page size will shrink to fit the viewer dimensions.
[PersistenceMode(PersistenceMode.InnerProperty)]
public DefaultPageSize DefaultPageSizeSettings { get; }
Gets or sets the maximum length of accepted JSON strings. Default value is int.MaxValue (2048MB=2147483647).
public int MaxSerializerLength { get; set; }
Gets the localization messages for the PdfViewer.
[PersistenceMode(PersistenceMode.InnerProperty)]
public Messages MessagesSettings { get; }
Specifies the PDF.JS configuration options. Including pdfjs is mandatory.
[PersistenceMode(PersistenceMode.InnerProperty)]
public PdfjsProcessing PdfjsProcessingSettings { get; }
Gets or sets the default scale of the pages.
[TypeConverter(typeof(ScaleConverter))]
public Scale Scale { get; set; }
protected override HtmlTextWriterTag TagKey { get; }
Overrides:
Gets or sets a value indicating whether the toolbar will be displayed. Inherits Kendo UI ToolBar.
public bool ToolBar { get; set; }
Gets the toolbar settings for the PdfViewer. Inherits Kendo UI ToolBar.
[PersistenceMode(PersistenceMode.InnerProperty)]
public ToolBar ToolBarSettings { get; }
Gets or sets the maximum zoom that can be applied to the pages.
public double ZoomMax { get; set; }
Gets or sets the minimum zoom that can be applied to the pages.
public double ZoomMin { get; set; }
Methods
protected override void DescribeClientEvents(IScriptDescriptor descriptor)
Overrides:
protected override void DescribeComponent(IScriptDescriptor descriptor)
Overrides:
Loads the posted content of the list control, if it is different from the last posting.
protected override bool LoadPostData(string postDataKey, NameValueCollection postCollection)
The key identifier for the control, used to index the postCollection.
postCollectionNameValueCollectionA NameValueCollection that contains value information indexed by control identifiers.
Returns:true if the posted content is different from the last posting; otherwise, false.
Overrides:
protected override void RenderContents(HtmlTextWriter writer)
Overrides:
protected override void TrackViewState()
Overrides: