Currently, default zoom can be set through JavaScript in the Render event handler of the PDFViewer:
Attach the handler:
.Events(e => e.Render("onRender"))
The event handler:
<script>
var firstRender = true;
function onRender(e) {
if (firstRender) {
var combobox = e.sender.toolbar.element.find("[data-command=ZoomCommand][data-role=combobox]").data("kendoComboBox");
combobox.value("fitToWidth");
combobox.trigger("change");
firstRender = false;
}
}
</script>
A better solution would be a dedicated configuration option that allows setting the default zoom when declaring the PDFViewer.
Hello Mugurel,
Thank you for submitting this feature request.
We will track the votes and monitor the community's interest in adding a zoom option to the PDFViewer.
Regards,
Ivan Danchev
Progress Telerik
As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.