PDFViewerDplProcessingReadSettingsBuilder
Methods
Url(System.String)
Specifies the url to which the request is sent.
Parameters
value - System.String
The value that configures the url.
Example
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.DplProcessing(dpl => {
dpl.Read(r => r.Url(Url.Action("GetInitialPdf", "PdfViewer")));
})
)
PageField(System.String)
Specifies the page field parameter submitted to the read url. It is used in scenario with loadOnDemand when requests are sent for each page.
Parameters
value - System.String
The value that configures the pagefield.
Example
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.DplProcessing(dpl => {
dpl.Read(read => read.PageField("pageNumber"));
dpl.LoadOnDemand(true);
})
)
Type(System.String)
Specifies the type of the request.
Parameters
value - System.String
The value that configures the type.
Example
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.DplProcessing(dpl => {
dpl.Read(read => read.Type("GET"));
})
)
DataType(System.String)
The type of result expected from the server. Used values are "json" and "jsonp". The PDFViewer expects a json to render the geometries.
Parameters
value - System.String
The value that configures the datatype.
Example
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.DplProcessing(dpl => {
dpl.Read(read => read.DataType("jsonp"));
})
)