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

Defines the fluent API for configuring the PDFViewerPdfjsProcessingSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class PDFViewerPdfjsProcessingSettingsBuilder

Inheritance: objectPDFViewerPdfjsProcessingSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public PDFViewerPdfjsProcessingSettingsBuilder(PDFViewerPdfjsProcessingSettings settings)
Parameters:settingsPDFViewerPdfjsProcessingSettings

The PDFViewerPdfjsProcessingSettings

Methods

Specifies the default file to be displayed.

C#
public PDFViewerPdfjsProcessingSettingsBuilder File(Action<PDFViewerPdfjsProcessingFileSettingsBuilder> configurator)
Parameters:configuratorAction<PDFViewerPdfjsProcessingFileSettingsBuilder>

The action that configures the file.

Returns:

PDFViewerPdfjsProcessingSettingsBuilder

Specifies the string path to the file.

C#
public PDFViewerPdfjsProcessingSettingsBuilder File(string url)
Parameters:urlstring

The path to the file.

Returns:

PDFViewerPdfjsProcessingSettingsBuilder

Example:
C#
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.PdfjsProcessing(pdf =&gt; pdf
.File(Url.Content("~/Content/web/pdfViewer/sample.pdf"))
)
)

Enables form filling capabilities by rendering widgets such as: TextBox; CheckBox; DropDown; RadioButton or Button.

C#
public PDFViewerPdfjsProcessingSettingsBuilder RenderForms()
Returns:

PDFViewerPdfjsProcessingSettingsBuilder

Enables form filling capabilities by rendering widgets such as: TextBox; CheckBox; DropDown; RadioButton or Button.

C#
public PDFViewerPdfjsProcessingSettingsBuilder RenderForms(bool value)
Parameters:valuebool

The value that configures the renderforms.

Returns:

PDFViewerPdfjsProcessingSettingsBuilder