Hello,
As a temporary solution a custom toolbar button can be created:
// https://www.youtube.com/watch?v=3FjYcMKZ3SU
function getFullscreenElement() {
return document.fullscreenElement
|| document.webkitfullscreenElement
|| document.mozfullscreenElement
|| document.msfullscreenElement
}
$(document).ready(function () {
$("#pdfViewer").kendoPDFViewer({
pdfjsProcessing: {
file: "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf"
},
width: "100%",
height: 1200,
toolbar: {
items: [
{
type: "button",
togglable: true,
name: "myCustomTool",
icon: "fullscreen",
toggle: function (ev) {
var viewerElement = this.options.viewer.element[0];
if (getFullscreenElement()) {
document.exitFullscreen()
} else {
viewerElement.requestFullscreen();
}
}
},
]
}
})
});
Regards,
Peter Milchev
Progress Telerik
Hello, Marty,
I'm afraid that this is no such built-in functionality in the PDF Viewer. However, it does make sense to have it as a built-in. That said, we approved the idea and you can cast your vote for it, so it could be considered for future implementation.
Regards,
Nencho
Progress Telerik