pdfjsProcessing.file.data Blob | byte[] | String

Specifies the data to be passed to the pdfjs processor. Accepts blob, byte array or base64 string.

Example

<div id="pdfViewer"></div>
<script type="module">
  var request = new XMLHttpRequest();
  request.open('GET', "https://demos.telerik.com/kendo-ui/content/web/pdfViewer/sample.pdf", true);
  request.responseType = 'blob';
  request.onload = function() {
    var reader = new FileReader();
    reader.readAsDataURL(request.response);
    reader.onload =  function(e){
      $("#pdfViewer").kendoPDFViewer({
        pdfjsProcessing: {
          file: {
            //retain the base64 data
            data: e.target.result.split(",")[1]
          }
        },
        width: "100%",
        height: 1200
      }).getKendoPDFViewer();
    };
  };
  request.send();
</script>
In this article