messages.toolbar.zoom.fitToWidth String
(default: "Fit To Width")
To run the below example, open it in Dojo
Example - set custom text for Fit To Width message
<div id="pdfviewer"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.js"></script>
<script>
window.pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.worker.js';
</script>
<script>
$("#pdfviewer").kendoPDFViewer({
pdfjsProcessing: {
file: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
},
messages: {
toolbar: {
zoom: {
fitToWidth: "Custom Fit To Width Message"
}
}
}
});
</script>