PDFViewerMessagesErrorMessagesSettingsBuilder
Methods
NotSupported(System.String)
Specifies the error message displayed when a user attempts to open a file that is not a PDF format. This validation occurs during file selection or upload.
Parameters
value - System.String
The value that configures the notsupported.
Example
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages => messages
.ErrorMessages(errmsg => errmsg.NotSupported("Only pdf files allowed."))
)
)
ParseError(System.String)
Specifies the error message displayed when the PDF processing library fails to parse or render the PDF file due to corruption, unsupported features, or internal errors.
Parameters
value - System.String
The value that configures the parseerror.
Example
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages => messages
.ErrorMessages(errmsg => errmsg.ParseError("PDF file fails to process."))
)
)
NotFound(System.String)
Specifies the error message displayed when the specified PDF file URL returns a 404 error or the file cannot be located at the provided path.
Parameters
value - System.String
The value that configures the notfound.
Example
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages => messages
.ErrorMessages(errmsg => errmsg.NotFound("File is not found."))
)
)
PopupBlocked(System.String)
Specifies the error message displayed when browser popup blockers prevent the PDF viewer from opening new windows for print or download operations.
Parameters
value - System.String
The value that configures the popupblocked.
Example
@(Html.Kendo().PDFViewer()
.Name("pdfviewer")
.Messages(messages => messages
.ErrorMessages(errmsg => errmsg.PopupBlocked("Popup is blocked."))
)
)