Opening Base64 pdf data in PDF Viewer

Hi,
I want to display the BASE64 converted data of a pdf into pdf viewer.
Here is the view:
webix.ui({
type:“space”,
id:“pdfview”,
rows:[
{ view:“pdfbar”, id:“toolbar” },
{ view:“pdfviewer”, id:“pdf”, toolbar:“toolbar”}
]
}).hide();

Here is the code to bind the data:
var attachment = this.getItem(id).Attachment;
var lcPDFData = atob(attachment);
lcFileName = { “data”: lcPDFData };
$$(“pdf”).load(lcFileName);
$$(“pdfviewer”).show();

I am getting error like: Uncaught TypeError: Cannot read property ‘getDocument’ of undefined

I am running the code in an android simulator.
Please help.

Here is the snippet
http://webix.com/snippet/b982ed0b

Hi, I can confirm the issue. We are planning to optimize the PDF viewer in the next version for .load API and base64 data (as well as other features).

As temp solution for your issue you can include PDF.js lib file directly in the document head: http://webix.com/snippet/1a74169a