I'm using a KendoPDFViewer component, and it works fine.
I want to enable selection by default, so that the use don't need to enable it manually.
I want to know in the following code snipet, how can i set "Enable Selection" property to true?
function createPdfViewer($elem) {
$.when(
$.getScript("https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.js"),
$.getScript("https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.worker.js")
).done(function () {
window.pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.2.2/pdf.worker.js';
}).then(function () {
$elem.kendoPDFViewer({
pdfjsProcessing: {
file: $elem[0].dataset.filename
},
width: $elem[0].dataset.width,
height: $elem[0].dataset.height
}).data("kendoPDFViewer");
});
}
