New to Kendo UI for jQuery? Start a free 30-day trial

Messages.dialogs

configuration

Specifies the localization messages for various dialog windows used by the PDF viewer, including export dialogs, search panels, and common dialog buttons.

<div id="pdfviewer"></div>
<script type="module">
  $("#pdfviewer").kendoPDFViewer({
    pdfjsProcessing: {
      file: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
    },
    messages: {
      dialogs: {
        exportAsDialog: {
          title: "Export Document...",
          defaultFileName: "MyDocument"
        },
        okText: "OK",
        save: "Save",
        cancel: "Cancel"
      }
    }
  });
</script>

Specifies the text for the cancel button in dialog windows. This button closes dialogs without performing any action or saving changes.

Default: "Cancel"

<div id="pdfviewer"></div>
<script type="module">
  $("#pdfviewer").kendoPDFViewer({
    pdfjsProcessing: {
      file: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
    },
    messages: {
      dialogs: {
        cancel: "Close"
      }
    }
  });
</script>

Specifies the localization messages for the export dialog that appears when using DPL processing. Contains text for dialog elements including title, file format options, and form labels.

pseudo
  <div id="pdfviewer"></div>
  <script type="module">
    $("#pdfviewer").kendoPDFViewer({
      dplProcessing: {
        read: {
          url: ""
        },
        download: {
          url: ""
        },
        upload: {
          url: ""
        }
      },
      messages: {
        dialogs: {
          exportAsDialog: {
            title: "Export Document...",
            defaultFileName: "MyDocument",
            pdf: "PDF Format (.pdf)",
            png: "PNG Format (.png)",
            svg: "SVG Format (.svg)",
            labels: {
              fileName: "File Name",
              saveAsType: "Save as Type",
              page: "Page"
            }
          }
        }
      }
    });
  </script>

Specifies the text for the confirmation button in dialog windows. This button is used to confirm actions and close dialogs with positive results.

Default: "OK"

<div id="pdfviewer"></div>
<script type="module">
  $("#pdfviewer").kendoPDFViewer({
    pdfjsProcessing: {
      file: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
    },
    messages: {
      dialogs: {
        okText: "Accept"
      }
    }
  });
</script>

Specifies the text for the save/download button in export and file dialogs. This button initiates the file save or download operation.

Default: "Save"

<div id="pdfviewer"></div>
<script type="module">
  $("#pdfviewer").kendoPDFViewer({
    pdfjsProcessing: {
      file: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
    },
    messages: {
      dialogs: {
        save: "Download"
      }
    }
  });
</script>

Specifies the localization messages for the search dialog that appears when users perform text searches within PDF documents. Contains text for search controls and navigation buttons.

<div id="pdfviewer"></div>
<script type="module">
  $("#pdfviewer").kendoPDFViewer({
    pdfjsProcessing: {
      file: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
    },
    messages: {
      dialogs: {
        search: {
          close: "Close",
          dragHandle: "Drag search",
          inputLabel: "Search Text",
          matchCase: "Match Case",
          next: "Next Match",
          previous: "Previous Match",
          of: " of {0}"
        }
      }
    }
  });
</script>