Unplanned
Last Updated: 28 Jun 2023 10:12 by ADMIN
Mugurel
Created on: 21 Jun 2023 15:37
Category: PDFViewer
Type: Feature Request
1
Add an option to set zoom in the PdfViewer

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.

1 comment
ADMIN
Ivan Danchev
Posted on: 28 Jun 2023 10:12

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.